Error : TransformException:java.util.zip.ZipException: duplicate entry: android/support/v4/app/TaskStackBuilderHoneycomb.class
Error : TransformException:java.util.zip.ZipException: duplicate entry: android/support/v4/app/TaskStackBuilderHoneycomb.class
我在 gradle 构建中遇到错误:
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v4/app/TaskStackBuilderHoneycomb.class
在我的应用依赖项中:
dependencies in gradle build
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2',{
})
//testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:design:24.2.1'
compile 'de.hdodenhof:circleimageview:1.3.0'
androidTestCompile 'com.android.support:support-annotations:24.2.1'
//compile 'com.google.android.gms:play-services-maps:9.6.1'
compile files('libs/universal-image-loader-1.8.4-with-sources.jar')
compile files('libs/org.apache.http.legacy.jar')
compile 'com.android.support:support-vector-drawable:24.2.1'
compile 'com.android.support:multidex:1.0.0'
//compile 'com.android.support:support-v4:24.2.1'
compile 'com.android.support:support-v13:24.2.1'
//compile files('libs/android-support-v4.jar')}
请帮帮我..
尝试从您的 build.gradle 文件中删除 compile files (libs/appcompat-v4)
依赖项,因为它是重复的依赖项。
我在 gradle 构建中遇到错误:
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v4/app/TaskStackBuilderHoneycomb.class
在我的应用依赖项中: dependencies in gradle build
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2',{
})
//testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:design:24.2.1'
compile 'de.hdodenhof:circleimageview:1.3.0'
androidTestCompile 'com.android.support:support-annotations:24.2.1'
//compile 'com.google.android.gms:play-services-maps:9.6.1'
compile files('libs/universal-image-loader-1.8.4-with-sources.jar')
compile files('libs/org.apache.http.legacy.jar')
compile 'com.android.support:support-vector-drawable:24.2.1'
compile 'com.android.support:multidex:1.0.0'
//compile 'com.android.support:support-v4:24.2.1'
compile 'com.android.support:support-v13:24.2.1'
//compile files('libs/android-support-v4.jar')}
请帮帮我..
尝试从您的 build.gradle 文件中删除 compile files (libs/appcompat-v4)
依赖项,因为它是重复的依赖项。