More than one file was found with OS independent path 'META-INF/ASL2.0'
See original GitHub issueMore than one file was found with OS independent path 'META-INF/ASL2.0'
> 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/ASL2.0'
build.prop
android {
packagingOptions {
exclude 'META-INF/ASL2.0'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
}
}
dependencies {
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.10.0'
implementation 'com.fasterxml.jackson.core:jackson-core:2.10.0'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.10.0'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-avro:2.10.0'
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
than one file was found with OS independent path 'META-INF ...
Given that it was happening on multiple modules, I have moved that resolutionStrategy code to my project level build.gradle. Everything worked ...
Read more >than one file was found with OS independent path 'META-INF ...
Hi, when I add the library to the app/build.gradle file: debugImplementation "com.github.ChuckerTeam.Chucker:library:3.0.1" ...
Read more >than one file was found with OS independent path 'META-INF ...
More than one file was found with OS independent path 'META-INF/DEPENDENCIES'packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude ...
Read more >than one file was found with OS independent path META-INF ...
More than one file was found with OS independent path 'META-INF/LICENSE'. The build.gradle file: apply plugin: 'com.android.application' ...
Read more >Android-studio – How to fix “More than one file was found with ...
More than one file was found with OS independent path 'META-INF/DEPENDENCIES' ... There also seems to be a version mismatch in between 1.25.0...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@cowtowncoder, the issue is that packagingOptions has to be set at App level build.gradle and in my case I’m generating a library, if I just set packagingOptions at library level build.gradle it doesn’t work.
@Alexandr-Ilyin It is probably a problem with your build tools: they should not barf on such metadata. So if possible, make sure you are using latest versions of tooling available.