After update to org.jetbrains.kotlinx:kotlinx-coroutines-android:1.2.0
android build failed with issue:
More than one file was found with OS independent path 'META-INF/atomicfu.kotlin_module'
有什么办法可以让它发挥作用吗?
After update to org.jetbrains.kotlinx:kotlinx-coroutines-android:1.2.0
android build failed with issue:
More than one file was found with OS independent path 'META-INF/atomicfu.kotlin_module'
有什么办法可以让它发挥作用吗?
在应用程序级别build.gradle
中,将以下内容添加到android
级别:-
packagingOptions {
pickFirst("META-INF/atomicfu.kotlin_module")
}
它看起来像:-
android {
.......
packagingOptions {
......
pickFirst("META-INF/atomicfu.kotlin_module")
}
}