Skip to content Skip to sidebar Skip to footer

Androidstudio Gradle Build Proguard Duplicate Zip Entry Error

What went wrong: Execution failed for task ':proguardRelease'. java.io.IOException: Can't write [C:\Workspaces\Eclipse\Mixvid\build\intermedi ates\classes-proguard\release\classes.

Solution 1:

You can use gradle packageOptions to exclude a class that has a duplicate.

android {

    ...
    packagingOptions {
        exclude  'org/apache/http/entity/mime/content/ByteArrayBody.class'
    }
    ...

}

Solution 2:

I got this issue today, and found that I have two different versions of one same library:

enter image description here

enter image description here

Just remove one then solved issue.

Post a Comment for "Androidstudio Gradle Build Proguard Duplicate Zip Entry Error"