ProGuard 官网地址:http://proguard.sourceforge.net/
ProGuard is a free Java class file shrinker, optimizer, obfuscator, and preverifier. It detects and removes unused classes, fields, methods, and attributes. It optimizes bytecode and removes unused instructions. It renames the remaining classes, fields, and methods using short meaningless names. Finally, it preverifies the processed code for Java 6 or higher, or for Java Micro Edition.
官网对ProGuard的描述说的很细致,在这里我就不说了。
下面我所说的就是在eclipse中怎么使用ProGuard,以及所碰到的一些问题以及解决办法。
1,我们现在使用的ADT都是比较新的版本。
关于这个如何配置ProGuard可以参照:http://dreamisx.blog.163.com/blog/static/1150048392012102611321887/
2,如果使用的比较老的ADT和API
可以参照:http://blog.csdn.net/feng88724/article/details/6603778
3,就是还原ProGuard混淆过的代码。
我在网上搜到一些关于这些问题讲解:http://www.360doc.com/content/14/0207/23/10366845_350581278.shtml
android项目下面的proguard文件夹里面的txt文件就是相关配置信息。
mapping.txt就相当于key。