https://kotlinlang.org logo
#coroutines
Title
# coroutines
m

matej

11/08/2018, 1:44 PM
Copy code
java.lang.IncompatibleClassChangeError: kotlinx.coroutines.io.internal.MutableDelegateContinuation
        at kotlinx.coroutines.io.ByteBufferChannel.<init>(ByteBufferChannel.kt:2253)
        at kotlinx.coroutines.io.ByteBufferChannel.<init>(ByteBufferChannel.kt:24)
        at kotlinx.coroutines.io.ByteChannelKt.ByteChannel(ByteChannel.kt:13)
        at kotlinx.coroutines.io.CoroutinesKt.writer(Coroutines.kt:98)
        at io.ktor.util.cio.InputStreamAdaptersKt.toByteReadChannel(InputStreamAdapters.kt:21)
        at io.ktor.util.cio.InputStreamAdaptersKt.toByteReadChannel$default(InputStreamAdapters.kt:20)
        at io.ktor.client.engine.android.AndroidClientEngineKt.content(AndroidClientEngine.kt:117)
        at io.ktor.client.engine.android.AndroidClientEngine.execute(AndroidClientEngine.kt:77)
        at io.ktor.client.engine.android.AndroidClientEngine.access$execute(AndroidClientEngine.kt:21)
        at io.ktor.client.engine.android.AndroidClientEngine$execute$2.invokeSuspend(AndroidClientEngine.kt:35)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)
        at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:236)
        at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:594)
        at kotlinx.coroutines.scheduling.CoroutineScheduler.access$runSafely(CoroutineScheduler.kt:60)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:742)
e

elizarov

11/08/2018, 2:31 PM
Unfortunately, that seems to be true. Beta version of ktor still depends on some internal and non-stable APIs of
kotlinx.coroutines
.
m

matej

11/08/2018, 3:30 PM
Thanks! Will keep an eye on it
7 Views