Skip to content

More than one file was found with OS independent path 'META-INF/common_release.kotlin_module' #53

@tobrun

Description

@tobrun

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions