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' #65

Closed
AlbertVilaCalvo opened this issue Oct 10, 2019 · 3 comments · Fixed by #116

Comments

@AlbertVilaCalvo
Copy link

I've recently added the Chucker library to my app and got this 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'

It turns out that both CalendarView and Chucker are creating the same META-INF/library_release.kotlin_module file:

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

I've opened an issue on Chucker with more details about the error and some solutions: ChuckerTeam/chucker#134

While there is a way to fix this, it would be nice that to fix the issue on the library itself, which would avoid having every user apply the same fix :)

@kizitonwose
Copy link
Owner

I'm not sure what the actual fix for this is. I do have a lot on my plate at the moment so if you know the fix, kindly open a PR.

@AlbertVilaCalvo
Copy link
Author

Thanks @kizitonwose

On the other library that also has this problem they've opened a PR with a fix: ChuckerTeam/chucker#146

Let's see if it does fix it and I might then open a PR here.

@samigehi
Copy link

I have excluded this file and worked perfect Ref

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

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 a pull request may close this issue.

3 participants