Tuesday, April 12, 2016

Error:Execution failed for task ':app:transformClassesAndResourcesWithRelease'. > java.io.IOException: Please correct the above warnings first.

奇葩的问题,
debug 的时候,没有问题,但是打release 包的时候,报错,因为proguard.pro 代码混淆的锅



我找到一个关键子:
com.jcraft.jzlib.ZInputStream

原来是XMPP  Smack 搞的鬼。我只需要 不会笑 Smack 就可以了
resolve method:
# XMPP smack start
-keep class org.jivesoftware.smack.** { *; }
-keep class org.jivesoftware.smackx.** { *; }
# XMPP smack end


You can see detail:
http://stackoverflow.com/questions/29678908/what-are-the-recommended-proguard-rules-for-smack-4-1




No comments:

Post a Comment