xuexiangjys / XUpdate

🚀A lightweight, high availability Android version update framework.(一个轻量级、高可用性的Android版本更新框架)
https://github.com/xuexiangjys/XUpdate/wiki
Apache License 2.0
2.32k stars 406 forks source link

java.lang.RuntimeException: loadStrategy(NO_CACHE) 签名后打包出错 #67

Closed 5s2j0f6c8k closed 4 years ago

5s2j0f6c8k commented 4 years ago

1.所有android 版本都不行 XHttp 的缓存有问题,有没有解决办法?

xuexiangjys commented 4 years ago

增加混淆配置

#XHttp2
-keep class com.xuexiang.xhttp2.model.** { *; }
-keep class com.xuexiang.xhttp2.cache.model.** { *; }
-keep class com.xuexiang.xhttp2.cache.stategy.**{*;}
-keep class com.xuexiang.xhttp2.annotation.** { *; }
5s2j0f6c8k commented 4 years ago

建议写到文档中,我已经换库了