Skip to content Skip to sidebar Skip to footer

TransformException: Java.util.zip.ZipException: Duplicate Entry: Android/support/v4/content/res/TypedArrayUtils.class

I have shared graddle Image HereError:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.Zi

Solution 1:

This error usually occurs when there is duplication of dependencies in gradle file. Check your app gradle file again, search for duplicate dependencies. For instance, if google services of version 9.2.0 is added and another google service version for instance say maps is added with version 10.0.0 so here conflict will occur hence resulting with this error


Solution 2:

Lİke @Techlnsect mentioned above we need to give direct import, try to remove ++ at the end of compiling element and find suitable for your work

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:25.1.1'
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:+'
    compile 'com.android.support:design:25.1.0'
    compile 'com.android.support:cardview-v7:2+'
    compile 'com.android.support:recyclerview-v7:+'
    compile 'com.android.support:multidex:1.0.0'
}

I changed it to and problem gone

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.1.1'
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.android.support:design:25.1.0'
compile 'com.android.support:cardview-v7:25.1.0'
compile 'com.android.support:recyclerview-v7:25.1.0'
compile 'com.android.support:multidex:1.0.0'

}


Post a Comment for "TransformException: Java.util.zip.ZipException: Duplicate Entry: Android/support/v4/content/res/TypedArrayUtils.class"