proguard 不混淆第三方jar包的问题

导入lib文件,并且用-dontwarn  和  keep class结合试试,例如:

-libraryjars libs/log4j.jar

-dontwarn org.apache.log4j.*
-keep class org.apache.log4j.** { *;}

将-dontwarn和-keep 结合使用,意思是保持包里面的所有类和所有方法而不混淆,
接着还叫ProGuard不要警告找不到这个包里面的类的相关引用。

报: Warning: org.apache.commons.logging.impl.LogKitLogger: can't find referenced class org.apache.log.Logger

来自:https://zhidao.baidu.com/question/1817946554333278028.html
http://www.cnblogs.com/dive/archive/2012/05/31/2529155.html
http://blog.csdn.net/p106786860/article/details/12168703

原文地址:https://www.cnblogs.com/jiduoduo/p/6347424.html