Skip to content
This repository has been archived by the owner on Jan 11, 2022. It is now read-only.

META-INF/DEPENDENCIES error #121

Open
mjavadf opened this issue Sep 7, 2019 · 1 comment
Open

META-INF/DEPENDENCIES error #121

mjavadf opened this issue Sep 7, 2019 · 1 comment

Comments

@mjavadf
Copy link

mjavadf commented Sep 7, 2019

I'm trying to migrate to V3, I changed dependencies according to sample but after run the app I,m facing to this error:

More than one file was found with OS independent path 'META-INF/DEPENDENCIES'
Gradle is like this:

    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.0.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.annotation:annotation:1.1.0'
    implementation 'com.google.android.material:material:1.0.0'
    implementation 'androidx.cardview:cardview:1.0.0'
    implementation 'androidx.recyclerview:recyclerview:1.0.0'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    //noinspection GradleCompatible
    implementation 'com.google.android.gms:play-services-auth:16.0.1'
    implementation 'com.google.http-client:google-http-client-gson:1.26.0'
    implementation('com.google.api-client:google-api-client-android:1.26.0') {
        exclude group: 'org.apache.httpcomponents'
    }
    implementation('com.google.apis:google-api-services-drive:v3-rev136-1.25.0') {
        exclude group: 'org.apache.httpcomponents'
    }
    implementation 'com.francescocervone:rxdrive:0.2'
@rbstarbuck
Copy link
Contributor

Hello,

Can you please try adding the following exclude statements to android.packagingOptions in your app's build.gradle:

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'
exclude 'META-INF/ASL2.0'

See here for an example.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants