我是Android开发人员,我正在使用Gradle来构建我的项目,如果我使用Proguard,我会得到一个IOException:
Execution failed for task ':ProjectName:proguardRelease'.
java.io.IOException: Can't write [:***\build\inter mediates\classes-proguard\release\classes.jar] (Can't read [:***\build\intermediates\exploded-aar\android\MSFPush\1.1.6\libs\support -v4-19.1.0.jar(;;;;;;!META-INF/MANIFEST.MF)] (Duplicate zip entry [android/suppo rt/v4/app/p.class == support-v4-19.1.0.jar:android/support/v4/app/FragmentState. class]))
请帮忙,我该如何解决上述问题?
答案 0 :(得分:0)
,排除导致重复问题的实体:
packagingOptions {
exclude 'META-INF/MANIFEST'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
}