Android   发布时间:2022-04-28  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了android – 程序类型已存在:kotlinx.coroutines.experimental.EventLoopBase大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_197_0@
我在我的kotlin安卓应用程序中收到以下错误

下面是我的依赖和kotlin实验协同程序

dependencies {
implementation fileTree(dir: 'libs',include: ['*.jar'])
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.0.0-rc01'
implementation 'androidx.consTraintlayout:consTraintlayout:1.1.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'

implementation 'org.jetbrains.anko:anko:0.10.5'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutInes-core:0.25.0'
implementation 'com.android.support:design:28.0.0-rc01'
}

kotlin {
    experimental {
        coroutInes "enable"
    }
}

解决方法

它是在kotlinx.coroutines 0.25.0中引入的 bug.

版本0.25.0以multi-release JAR的形式发货,这样的JAR打破了除最新的alpha版本之外的所有Android工具.此更改已在版本0.25.3中恢复,因此更新kotlinx.coroutines版本和使缓存无效就足以解决问题.

大佬总结

以上是大佬教程为你收集整理的android – 程序类型已存在:kotlinx.coroutines.experimental.EventLoopBase全部内容,希望文章能够帮你解决android – 程序类型已存在:kotlinx.coroutines.experimental.EventLoopBase所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。