2017-07-09 87 views
1

,这里是我的build.gradle依赖性来: `java.util.zip.ZipException:重复输入错误

依赖{

compile fileTree(include: ['*.jar'], dir: 'libs') 

compile 'com.android.support:appcompat-v7:23.0.0' 
compile files('libs/google-play-services.jar') 

compile files('libs/android-async-http-1.4.9.jar') 
compile 'cz.msebera.android:httpclient:4.3.6' 
compile 'com.google.android.gms:play-services-location:7.+' 

,我的错误是: 错误:执行失败的任务“ :应用程序:packageAllDebugClassesForMultiDex”。

java.util.zip.ZipException: duplicate entry: com/google/android/gms/auth/UserRecoverableAuthException.class

错误原因是什么?

回答

0

您正在您的gradle文件中两次添加google-play-services。

compile files('libs/google-play-services.jar') 
compile 'com.google.android.gms:play-services-location:7.+' 

从您的build.gradle文件中删除以下行。

compile files('libs/google-play-services.jar') 
+0

使用multidex我删除,但仍然有同样的错误 – fatima

+0

删除'的Google Play-services.jar'从libs目录 –

+0

是它workeeeeedd谢谢阿米特:) – fatima

0

你需要在项目link

相关问题