-
-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R8 full mode 完整模式兼容问题 #471
Comments
出现该问题的原因是,完整模式下,对于没有keep的类,将会擦出泛型信息 目前有3个解决方案 1、手动关闭完整模式,在 android.enableR8.fullMode=false 2、添加以下规则到 -keepattributes Signature
-keep,allowobfuscation,allowshrinking class * extends rxhttp.wrapper.parse.TypeParser 3、升级RxHttp至 |
liujingxing
added a commit
that referenced
this issue
Oct 28, 2023
如果项目中有自定义解析器,并且使用了类似于 -keep,allowobfuscation,allowshrinking class xxx.xxx.BaseResponse 其中 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
RxHttp 版本 v3.2.0
通过
android.enableR8.fullMode=true
开启R8完整模式,或将AGP
升级至8.0及以上版本,将默认开启完整模式,此时执行以下代码,将发生闪退闪退日志
The text was updated successfully, but these errors were encountered: