yayaa / LocationManager

Simplify getting user's location for Android
806 stars 187 forks source link

duplicate entry error after adding firebase dependencies #32

Closed mahermeg17 closed 7 years ago

mahermeg17 commented 7 years ago

Hi,

All work fine until I add some firebase dependencies Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/common/api/zzd.class

even I add to my build file : ` packagingOptions {

    exclude 'META-INF/DEPENDENCIES.txt'
    exclude 'META-INF/LICENSE.txt'
    exclude 'META-INF/NOTICE.txt'
    exclude 'META-INF/NOTICE'
    exclude 'META-INF/LICENSE'
    exclude 'META-INF/DEPENDENCIES'
    exclude 'META-INF/notice.txt'
    exclude 'META-INF/license.txt'
    exclude 'META-INF/dependencies.txt'
    exclude 'META-INF/LGPL2.1'
}
dexOptions {
    jumboMode true
    javaMaxHeapSize "4g"
}`
yayaa commented 7 years ago

Can you try to exclude group: 'com.google.android.gms' from the library?

compile('com.yayandroid:LocationManager:1.1.5') {
    exclude group: 'com.google.android.gms'
}
yayaa commented 7 years ago

Any feedback on this? @mahermeg17