Skip to content

Comments

Set Kotlin module name to fix library conflict#10

Merged
Maxr1998 merged 2 commits intoMaxr1998:masterfrom
kdrag0n:kotlin-module-name
Mar 31, 2021
Merged

Set Kotlin module name to fix library conflict#10
Maxr1998 merged 2 commits intoMaxr1998:masterfrom
kdrag0n:kotlin-module-name

Conversation

@kdrag0n
Copy link
Contributor

@kdrag0n kdrag0n commented Mar 16, 2021

By default, the Kotlin compiler creates a kotlin_module file with the name of the Gradle module. The resulting name is "library_release.kotlin_module" for this library, which conflicts with other libraries that also use the default generic "library" name. This causes builds to fail when multiple such libraries are used in the same project:

> 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/library_release.kotlin_module'.

Set a unique Kotlin module name to fix the issue.

kdrag0n and others added 2 commits March 15, 2021 20:59
By default, the Kotlin compiler creates a kotlin_module file with the
name of the Gradle module. The resulting name is
"library_release.kotlin_module" for this library, which conflicts with
other libraries that also use the default generic "library" name. This
causes builds to fail when multiple such libraries are used in the same
project:

> 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/library_release.kotlin_module'.

Set a unique Kotlin module name to fix the issue.
@Maxr1998
Copy link
Owner

Thanks!

@Maxr1998 Maxr1998 merged commit ceeab64 into Maxr1998:master Mar 31, 2021
@kdrag0n kdrag0n deleted the kotlin-module-name branch March 31, 2021 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants