混淆bug:* What went wrong: Execution failed for task ':app:transformClassesAndResourcesWithProguardFor

最近在打包的时候遇到这个奇葩问题,也是对前面文章的补充,一直打release包不成功,报

* What went wrong:

Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.

> Job failed, see logs for details

混淆bug:* What went wrong: Execution failed for task ':app:transformClassesAndResourcesWithProguardFor_第1张图片

看了几遍proguard-rules.pro,该有的混淆都加了,还是一直打包不成功,最后加上这句

-dontwarn org.apache.commons.logging.**
-ignorewarnings
-keep class * {
public private *;
}
成功了,主要还是-ignorewarnings这个,忽略警告

你可能感兴趣的:(Android混淆,release不成功,Android开发经验)