[TIMOB-27995] Android: Gradle error related to "META-INF" when including two Kotlin based modules
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Hans Knöchel |
Assignee | Unknown |
Created | 2020-07-02T05:54:52.000+0000 |
Updated | 2020-10-19T11:20:05.000+0000 |
Description
The error is
More than one file was found with OS independent path 'META-INF/module_release.kotlin_module'
and occurs when more than one Android module is built with Kotlin. A workaround is to add the following to the build.gradle of one of the modules:
android {
packagingOptions {
exclude 'META-INF/*.kotlin_module'
}
}
Or add it to custom build.gradle into /platform/android, that works too