https://kotlinlang.org logo
n

neil

07/11/2016, 9:50 PM
In our Android app, we have several libraries which we are importing into the main project. Each of these modules are named “lib”. We have recently added extension functions outside a class to two such libraries. As mentioned in this page: https://blog.jetbrains.com/kotlin/2015/06/improving-java-interop-top-level-functions-and-properties/ "for each module, the compiler will generate a special file META-INF/<module name>.kotlin_module” The problem is that since the modules are both named “lib”, there is now a
> com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/lib-compileReleaseKotlin.kotlin_module