java.util.zip.ZipException:重复的条目:com / google / android / gms / auth / UserRecoverableAuthException.class [英] java.util.zip.ZipException: duplicate entry:com/google/android/gms/auth/UserRecoverableAuthException.class

查看:41
本文介绍了java.util.zip.ZipException:重复的条目:com / google / android / gms / auth / UserRecoverableAuthException.class的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

构建应用后,我遇到了这个问题,

I'm getting this issue after building app,

任务’:appname:transformClassesWithJarMergingForDebug执行失败。
com.android.build.api.transform.TransformException:
java.util.zip.ZipException:重复条目:com / google / android / gms / auth / UserRecoverableAuthException.class

我在build.gradle中的依赖项是

My dependencies in build.gradle is

dependencies {
    compile fileTree(include: '*.jar', dir: 'libs')
    compile project(':_library')
    compile project(':android-support-v7-appcompat')
    compile project(':library_pull')
    compile project(':Drag_library')
    compile 'com.google.android.gms:play-services-appindexing:8.1.0'
    compile files('libs/org.apache.http.legacy.jar')
}


推荐答案

将此添加到应用程序 build.gradle 文件的底部:

Add this to the bottom of your app's build.gradle file:

configurations.all {
排除模块:'play-services-auth'
}

这篇关于java.util.zip.ZipException:重复的条目:com / google / android / gms / auth / UserRecoverableAuthException.class的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆