Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27995] Android: Gradle error related to "META-INF" when including two Kotlin based modules

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterHans Knöchel
AssigneeUnknown
Created2020-07-02T05:54:52.000+0000
Updated2020-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'
  }
}

Comments

  1. Marian Kucharcik 2020-10-19

    Or add it to custom build.gradle into /platform/android, that works too

JSON Source