Kotlin kotlinx-coroutines-core kotlinx-coroutines-android 异常
碰到个异常记录下坑
Module with the Main dispatcher is missing. Add dependency providing the Main dispatcher, e.g. ‘kotlinx-coroutines-android’ and ensure it has the same version as 'kotlinx-coroutines-core’
解决办法:
如果你是Debug的版本未混淆代码,抛出这种异常,那应该是你两个协程库的版本不一致导致,所以把两个库的版
原创
2020-10-14 11:34:10 ·
3929 阅读 ·
0 评论