Does anyone has this issue when building ? ```Exec...
# android
t
Does anyone has this issue when building ?
Copy code
Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
> More than one file was found with OS independent path 'META-INF/atomicfu.kotlin_module'
it seems related to having
org.jetbrains.kotlinx:kotlinx-coroutines-android:1.2.0
as a dependency. I solved it with the following workaround :
Copy code
android {
    packagingOptions {
        exclude 'META-INF/*.kotlin_module'
    }
}
But that wasn't necessary in
1.1.1
.
l
The issue has already been reported on kotlinx.coroutines GitHub
s
r
Isn’t it standard to exclude kotlin modules from app build anyway?
t
@ribesg I was wondering. Aren't those files required for reflection or something ?
r
I read something about that yes, but until I encounter an issue I’m not adding useless files to my APK, they’re big enough already. You just need to keep the fact that you excluded these files in mind when you encounter a problem. Also if you find that you need one of these files, don’t add all of them, just the one you need
t
kotlinx.coroutines
1.2.1 is now released and it should solve the atomicfu problem. I'll test it on my build later