question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

More than one file was found with OS independent path 'META-INF/ASL2.0'

See original GitHub issue
More 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Grabbercommented, Nov 11, 2019

@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.

0reactions
cowtowncodercommented, Sep 24, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found