More than one file was found with OS independent path 'META-INF/common_release.kotlin_module'
tobrun opened this issue · 0 comments
tobrun commented
With using Kotlin support downstream in common SDK (c++ SDK with java wrapper),
we are now facing the following compilation warning:
* What went wrong:
Execution failed for task ':app:mergeReleaseJavaResource'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> More than one file was found with OS independent path 'META-INF/common_release.kotlin_module'
Fow now we can workaround this issue by excluding this file as:
android {
packagingOptions {
exclude 'META-INF/*.kotlin_module'
}
}
but the source of the issue is that we have two common project generating the same file name signature.
This can be solved with a configuration as:
compileKotlin {
kotlinOptions.moduleName = "common-android"
}
cc @LukasPaczos