For below android version-5 i am getting ZipException with duplicate entry: com/google/api/client/http/AbstractHttpContent.class

若如初见. 提交于 2019-12-11 11:12:37

问题


Not able to install app in android version 4.4 I am getting error like:

 Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
    > com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/api/client/http/AbstractHttpContent.class

I have tried this solution but it didn't worked for me.

Here is my app dependencies

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:appcompat-v7:23.3.0'
    compile 'com.android.support:design:23.3.0'
    compile 'com.android.support:support-v13:23.3.0'
    compile 'com.android.support:recyclerview-v7:23.3.0'
    compile 'com.android.support:cardview-v7:23.3.0'
    compile 'com.google.code.gson:gson:2.1'
    compile 'com.google.android.gms:play-services-ads:8.4.0'
    compile 'com.google.android.gms:play-services-maps:8.4.0'
    compile 'com.google.android.gms:play-services-auth:8.4.0'
    compile 'com.google.android.gms:play-services-nearby:8.4.0'
    compile 'com.google.android.gms:play-services-location:8.4.0'
    compile 'com.google.android.gms:play-services-gcm:8.4.0'

    compile 'com.google.http-client:google-http-client-gson:1.20.0'

    compile('com.twitter.sdk.android:twitter:1.13.0@aar') {
        transitive = true
    }
    compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
        transitive = true;
    }
    compile project(':library')
    compile project(':facebook-android-sdk-4.8.1')
}

dependencies for library module

dependencies {
  compile 'com.android.support:support-annotations:22.2.0'
}

来源:https://stackoverflow.com/questions/36645868/for-below-android-version-5-i-am-getting-zipexception-with-duplicate-entry-com

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!