i'm migrating to google drive api v3 and updated dependencies according to this sample like this :
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'
}
but i'm facing to this error:
More than one file was found with OS independent path 'META-INF/DEPENDENCIES'
and can not run the app
Use packagingOptions
pickFirst
or exclude
; think it should be save to exclude it:
android {
packagingOptions {
// pickFirst "META-INF/DEPENDENCIES"
exclude "META-INF/DEPENDENCIES"
}
}
There also seems to be a version mismatch in between 1.25.0
and 1.26.0
. Current version is :
implementation "com.google.apis:google-api-services-drive:v3-rev173-1.25.0"
and the others might need to have version 1.25.0
, too.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With