2017-07-09 111 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

相關問題