android – 程序类型已存在:kotlinx.coroutines.experimental.EventLoopBase

android – 程序类型已存在:kotlinx.coroutines.experimental.EventLoopBase,第1张

概述我在我的kotlin安卓应用程序中收到以下错误 Android issues: (3 errors) Program type already present: kotlinx.coroutines.experimental.EventLoopBase Message{kind=ERROR, text=Program type already present: kotlinx.coroutines 我在我的kotlin安卓应用程序中收到以下错误

Android issues: (3 errors)

Program type already present: kotlinx.coroutines.experimental.EventLoopBase@H_502_8@ Message{kind=ERROR,text=Program type already present: kotlinx.coroutines.experimental.EventLoopBase,sources=[UnkNown source file],tool name=Optional.of(D8)}

Program type already present: kotlinx.coroutines.experimental.internal.LockFreelinkedListNode@H_502_8@ Message{kind=ERROR,text=Program type already present: kotlinx.coroutines.experimental.internal.LockFreelinkedListNode,tool name=Optional.of(D8)}

Program type already present: kotlinx.coroutines.experimental.internal.LockFreeMPSCQueueCore@H_502_8@ Message{kind=ERROR,text=Program type already present: kotlinx.coroutines.experimental.internal.LockFreeMPSCQueueCore,tool name=Optional.of(D8)}

Java compiler: (4 errors)

Caused by: com.androID.builder.dexing.DexArchiveBuilderException: Failed to process /home/deepak/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-core/0.25.0/5664ba2d20c6dcc88c912cc9666baa7f03203bcd/kotlinx-coroutines-core-0.25.0.jar

Caused by: com.androID.builder.dexing.DexArchiveBuilderException: Error while dexing.

Caused by: com.androID.tools.r8.CompilationFailedException: Compilation Failed to complete

Caused by: com.androID.tools.r8.utils.AbortException

下面是我的依赖和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所遇到的程序开发问题。

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

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1135096.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-30
下一篇2022-05-30

发表评论

登录后才能评论

评论列表(0条)

    保存