Butterknife: TransformException: java.util.zip.ZipException: duplicate entry

Created on 23 Mar 2017  ·  2Comments  ·  Source: JakeWharton/butterknife

I met this error:
Execution failed for task ':app:transformClassesWithJarMergingForStagingDebug'. > com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v4/graphics/drawable/DrawableCompatBase.class
How to solve it ?Thx

Most helpful comment

compile ('com.jakewharton:butterknife:8.5.1'){
exclude module: 'support-compat'
}

this maybe be would help you

All 2 comments

compile ('com.jakewharton:butterknife:8.5.1'){
exclude module: 'support-compat'
}

this maybe be would help you

This is a build system problem, not a Butter Knife problem. See my comment here: https://github.com/JakeWharton/butterknife/issues/903#issuecomment-287264156

Was this page helpful?
0 / 5 - 0 ratings