java.util.zip.ZipException:重复输入错误
这是我的build.gradle依赖项部分: ` 依赖关系{java.util.zip.ZipException:重复输入错误,java,android,Java,Android,这是我的build.gradle依赖项部分: ` 依赖关系{ 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
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.+'
我的错误是:
错误:任务“:app:packageAllDebugClassesForMultiIndex”的执行失败
java.util.zip.zipeException:重复条目:com/google/android/gms/auth/UserRecoverableAuthException.class
错误的原因是什么???您在gradle文件中添加了两次google play服务
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')
您在gradle文件中添加了两次google play服务
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')
您需要在project中使用multidex您需要在project中使用multidex从libs目录中删除
google play services.jar
,从libs目录中删除google play services.jar