ProGuard 代码混淆碰到的相关问题。

需求:混淆一个jar包的所有的私有属性和方法。
-keep class * {
public protected <fields>;
public protected <methods>;
}




//最关键的一行

-optimizations !code/allocation/variable
//如果不加会报错,因为这是官方的一个BUG.搞了我好长时间.md
/*
    java.lang.ClassFormatError: LVTT entry for 'a' in class file ×× does not match any LVT entry
    
*/

相关链接:
http://blog.csdn.net/zhangdaiscott/article/details/45368261
http://blog.csdn.net/u012219290/article/details/51454558
http://www.cnitblog.com/zouzheng/archive/2014/10/31/72639.html
http://blog.csdn.net/primer_programer/article/details/37602339

猜你喜欢

转载自fp-forever.iteye.com/blog/2300784