项目中需要用到Umeng统计分析,按照官网上的步骤做混淆后,在签名时报下面的错误:
Error:java.io.IOException:Can't read
[/.gradle/caches/modules-2/files-2.1/com.umeng.analytics/analytics/5.5.3/5d503ec571e2e98d972209afa203f94d11882c15/analytics-5.5.3.jar(;;;;;;!META-INF/MANIFEST.MF)]
(Duplicate zip entry [com/umeng/analytics/a.class == analytics-5.5.3.jar:com/umeng/analytics/AnalyticsConfig.class])
Error:java.io.IOException: Duplicate zip entry [com/umeng/analytics/a.class == analytics-5.5.3.jar:com/umeng/analytics/AnalyticsConfig.class]
Error:Execution failed for task ':studentpart:dexRelease'.
java.util.zip.ZipException: error in opening zip filenection timeout.)
Re-download dependencies and sync project (requires network)
Re-download dependencies and sync project (requires network)
到官网论坛里面去找,也没有同类错误的,于是试着把.gradle文件下的
dependencies {
compile 'com.umeng.analytics:analytics:latest.integration'
}
删除了在签名试试,结果成功了,删掉后不报错了。不知道为什么。