Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用热修复Sophix,加载补丁后导致应用崩溃。kotlin,协程出现找不到 #203

Open
diswy opened this issue Mar 7, 2019 · 1 comment

Comments

@diswy
Copy link

diswy commented Mar 7, 2019

按文档集成了Sophix,在不使用kotlin协程的情况,加载补丁后都是可以正常运行,实现热修复。
问题在于,使用了kotlin的协程之后,则会出现如下日志:

java.lang.IllegalStateException: Module with the Main dispatcher is missing. Add dependency providing the Main dispatcher, e.g. 'kotlinx-coroutines-android'
at kotlinx.coroutines.internal.MissingMainCoroutineDispatcher.missing(MainDispatchers.kt:73)
at kotlinx.coroutines.internal.MissingMainCoroutineDispatcher.isDispatchNeeded(MainDispatchers.kt:54)
at kotlinx.coroutines.DispatchedKt.resumeCancellable(Dispatched.kt:373)
at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(Cancellable.kt:25)
at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:109)
at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:160)
at kotlinx.coroutines.channels.ActorKt.actor(Actor.kt:121)
at kotlinx.coroutines.channels.ActorKt.actor$default(Actor.kt:112)....

提示Module with the Main dispatcher is missing该错误,问题可以复现,希望工程师可以解决一下该问题。kotlin版本 1.3.20,协程版本1.1.1

@SducodeMonkey
Copy link
Contributor

热修复相关问题,可以添加钉钉群:21710469,有技术支持同学实时响应。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants