Android项目中的java.util.zip.ZipException

时间:2015-08-12 12:31:39

标签: java android

如果我在android项目罐中导入(我使用Android Studio,Gradle),我会收到此错误:

Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'.> 
java.util.zip.ZipException: duplicate entry: com/sun/jersey/api/client/AbstractClientRequestAdapter.class

我认为问题在于两个JAR包含类AbstractClientRequestAdapter。 我的build.gradle中的依赖项:

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:appcompat-v7:22.2.0'
    compile project(':jersey-bundle-1.13-b01')
    compile project(':jersey-client-1.19(2)')
    compile project(':jersey-core-1.19(2)')
    compile project(':jersey-multipart-1.19')
    compile project(':org.apache.servicemix.specs.jsr311-api-1.0-1.3.0')
}

如何从项目中排除此类?

0 个答案:

没有答案