赞
踩
错误内容:
Duplicate class kotlinx.coroutines.AbstractCoroutine found in modules kotlinx-coroutines-core-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9) and kotlinx-coroutines-core-jvm-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9) Duplicate class kotlinx.coroutines.Active found in modules kotlinx-coroutines-core-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9) and kotlinx-coroutines-core-jvm-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9) Duplicate class kotlinx.coroutines.channels.ChannelCoroutine found in modules kotlinx-coroutines-core-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9) and kotlinx-coroutines-core-jvm-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9) Duplicate class kotlinx.coroutines.channels.ChannelIterator found in modules kotlinx-coroutines-core-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9) and kotlinx-coroutines-core-jvm-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9) Duplicate class kotlinx.coroutines.channels.ChannelIterator$DefaultImpls found in modules kotlinx-coroutines-core-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9) and kotlinx-coroutines-core-jvm-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9) Duplicate class kotlinx.coroutines.channels.ChannelIterator$next0$1 found in modules kotlinx-coroutines-core-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9) and kotlinx-coroutines-core-jvm-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9) Duplicate class kotlinx.coroutines.channels.ChannelKt found in modules kotlinx-coroutines-core-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9) and kotlinx-coroutines-core-jvm-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9) Duplicate class kotlinx.coroutines.channels.ChannelsKt found in modules kotlinx-coroutines-core-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9) and kotlinx-coroutines-core-jvm-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9) Duplicate class kotlinx.coroutines.channels.ChannelsKt__ChannelsKt found in modules kotlinx-coroutines-core-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9) and kotlinx-coroutines-core-jvm-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9) Duplicate class kotlinx.coroutines.channels.ChannelsKt__ChannelsKt$sendBlocking$1 found in modules kotlinx-coroutines-core-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9) and kotlinx-coroutines-core-jvm-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9) Duplicate class kotlinx.coroutines.channels.ChannelsKt__Channels_commonKt found in modules kotlinx-coroutines-core-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9) and kotlinx-coroutines-core-jvm-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9) Duplicate class kotlinx.coroutines.channels.ChannelsKt__Channels_commonKt$all$1 found in modules kotlinx-coroutines-core-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9) and kotlinx-coroutines-core-jvm-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9) Duplicate class kotlinx.coroutines.channels.ChannelsKt__Channels_commonKt$any$1 found in modules kotlinx-coroutines-core-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9) and kotlinx-coroutines-core-jvm-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9) Duplicate class kotlinx.coroutines.channels.ChannelsKt__Channels_commonKt$any$3 found in modules kotlinx-coroutines-core-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9) and kotlinx-coroutines-core-jvm-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9) Duplicate class kotlinx.coroutines.channels.ChannelsKt__Channels_commonKt$associate$1 found in modules kotlinx-coroutines-core-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9) and kotlinx-coroutines-core-jvm-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9) Duplicate class kotlinx.coroutines.channels.ChannelsKt__Channels_commonKt$associateBy$1 found in modules kotlinx-coroutines-core-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9) and kotlinx-coroutines-core-jvm-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9) Duplicate class kotlinx.coroutines.channels.ChannelsKt__Channels_commonKt$associateBy$2 found in modules kotlinx-coroutines-core-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9) and kotlinx-coroutines-core-jvm-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9) Duplicate class kotlinx.coroutines.channels.ChannelsKt__Channels_commonKt$associateByTo$1 found in modules kotlinx-coroutines-core-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9) and kotlinx-coroutines-core-jvm-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9) Duplicate class kotlinx.coroutines.channels.ChannelsKt__Channels_commonKt$associateByTo$3 found in modules kotlinx-coroutines-core-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9) and kotlinx-coroutines-core-jvm-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9) Duplicate class kotlinx.coroutines.channels.ChannelsKt__Channels_commonKt$associateTo$1 found in modules kotlinx-coroutines-core-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9) and kotlinx-coroutines-core-jvm-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9) Duplicate class kotlinx.coroutines.channels.ChannelsKt__Channels_commonKt$consumeEach$1 found in modules kotlinx-coroutines-core-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9) and kotlinx-coroutines-core-jvm-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9) Duplicate class kotlinx.coroutines.channels.ChannelsKt__Channels_commonKt$consumeEach$3 found in modules kotlinx-coroutines-core-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9) and kotlinx-coroutines-core-jvm-1.3.9.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.3.9) 原因是: kotlinx-coroutines-core与kotlinx-coroutines-core-jvm 冲突所导致的 解决方案: implementation('androidx.datastore:datastore-preferences:1.0.0-alpha04'){ exclude group:'org.jetbrains.kotlinx',module:'kotlinx-coroutines-core-jvm' } 或者 ```java implementation('androidx.datastore:datastore-preferences:1.0.0-alpha04'){ excludegroup:'org.jetbrains.kotlinx',module:'kotlinx-coroutines-core' excludegroup:'org.jetbrains.kotlinx',module:'kotlinx-coroutines-core-jvm' }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。