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'
Are there any workaround to make it work?
In app-level build.gradle
add the following to android
level :-
packagingOptions {
pickFirst("META-INF/atomicfu.kotlin_module")
}
It would look like :-
android {
.......
packagingOptions {
......
pickFirst("META-INF/atomicfu.kotlin_module")
}
}
Adding -dontwarn kotlinx.atomicfu.**
to my proguard rules file was enough to get my build working with version 1.2.1
of the kotlinx-coroutines-android
library.
Adding the packagingOptions { pickFirst('META-INF/atomicfu.kotlin_module') }
or packagingOptions { exclude('META-INF/atomicfu.kotlin_module') }
block in my build.gradle
file didn't work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With