Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
AlbertVilaCalvo opened this issue Oct 10, 2019 · 4 comments · Fixed by #146

Comments

@AlbertVilaCalvo
Copy link

@AlbertVilaCalvo AlbertVilaCalvo commented Oct 10, 2019

Hi, when I add the library to the app/build.gradle file:

debugImplementation "com.github.ChuckerTeam.Chucker:library:3.0.1"
releaseImplementation "com.github.ChuckerTeam.Chucker:library-no-op:3.0.1"

I get the following build error:

Execution failed for task ':app:mergeDebugJavaResource'.
> 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'

Indeed, I have 2 libraries with this file, one of them is chucker:

Captura de Pantalla 2019-10-10 a les 12 58 32

There is a way to fix this with packagingOptions:

packagingOptions {
    exclude 'META-INF/library_release.kotlin_module'
}

However it seems that the root cause can be solved on the library, which is better because it avoids having everyone to add the exclude fix:

Takhion/android-extras-delegates#1
Kodein-Framework/Kodein-DI#138

Would be nice if this was fixed at the library :)

@AlbertVilaCalvo

This comment has been minimized.

Copy link
Author

@AlbertVilaCalvo AlbertVilaCalvo commented Oct 10, 2019

@AlbertVilaCalvo

This comment has been minimized.

Copy link
Author

@AlbertVilaCalvo AlbertVilaCalvo commented Oct 10, 2019

I've opened an issue on the other library too: kizitonwose/CalendarView#65

cortinico added a commit that referenced this issue Oct 23, 2019
Fixes #134
@cortinico

This comment has been minimized.

Copy link
Member

@cortinico cortinico commented Oct 23, 2019

Thanks for the report @AlbertVilaCalvo
Fix should be #146

cortinico added a commit that referenced this issue Dec 30, 2019
Fixes #134
@jhamin0511

This comment has been minimized.

Copy link

@jhamin0511 jhamin0511 commented Jan 16, 2020

It is work for me.

packagingOptions {
    exclude 'META-INF/library_release.kotlin_module'
}

https://stackoverflow.com/questions/44509608/duplicate-files-copied-in-apk-meta-inf-library-release-kotlin-module

kmayoral added a commit to kmayoral/chucker that referenced this issue Jan 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants
You can’t perform that action at this time.