简书链接:rew混淆拍错解决there3instancesoflibraryclassesdependingonprogramcl
文章字数:78,阅读全文大约需要1分钟

1
2
Fixes: can't find dynamically referenced class org.apache.harmony.xnet.provider.jsse.NativeCrypto  
it.WebViewClient depends on program class android.net.http.SslError

等等..诸如此类错误

错误提示

1
2
3
# there were 3 instances of library classes depending on program classes.
# You must avoid such dependencies, since the program classes will
# be processed, while the library classes will remain unchanged.

意思是有jar中有3个实例代码有依赖,必须 避免如此依赖, 因为在程序处理class之后,这个class将不会改变。

解决办法:

1
2
3
-keep class org.apache.http.**{*;}
-dontwarn org.apache.http.**
-dontwarn android.net.**

实际上是我引入了org.apache.http.legacy.jar需要进行保持.