>出了什么问题:
任务’:proguardRelease’的执行失败.
java.io.IOException: Can’t write [C:\Workspaces\Eclipse\Mixvid\build\intermedi
ates\classes-proguard\release\classes.jar] (Can’t read [C:\Workspaces\Eclipse\Mi
xvid\build\intermediates\exploded-aar\Mixvid\meituPic_andcommonlib\unspecified\l
ibs\httpmime-4.2.2.jar(;;;;;;!meta-inf/MANIFEST.MF)] (Duplicate zip entry [httpm
ime-4.2.2.jar:org/apache/http/entity/mime/content/ByteArrayBody.class]))
我无法删除此重复的jar,因为我的库需要它,有什么方法可以解决此问题?
解决方法:
您可以使用gradle packageOptions排除具有重复项的类.
android {
...
packagingOptions {
exclude 'org/apache/http/entity/mime/content/ByteArrayBody.class'
}
...
}