Closed bravetou closed 10 months ago
具体什么问题?另外,你自己的实体类记得keep
# 保持实体类不被混淆
-keep class org.jutuina.com.tuinapro.bean.**{*;}
-keep class org.jutuina.com.tuinapro.core.net.Response{*;}
# -keep class org.jutuina.com.tuinapro.core.net.GetEncryptParam {*;}
# -keep class org.jutuina.com.tuinapro.core.net.PostEncryptFormParam {*;}
# -keep class org.jutuina.com.tuinapro.core.net.PostEncryptJsonParam {*;}
混淆了的,具体就是项目中使用了AES(allParam.encryptParamAES(false))加密所有参数,生成一个新的signs参数,未混淆时一切正常,混淆之后就直接报网络请求失败
错误日志你要发出来,不用多想,肯定是混淆的问题
我需要错误日志,请求失败具体什么表现,比如,请求发出来没,请求回来了没?RxHttp初始化的的时候通过setDebug(true),随后就会有详细的请求日志
21:10:36.269 E Request end Log printing failed
21:10:36.269 E java.lang.IllegalStateException: TypeToken must be created with a type argument: new TypeToken<...>() {}; When using code shrinkers (ProGuard, R8, ...) make sure that generic signatures are preserved.
已增加Gson混淆,谢谢
晓得了,你应该升级了AGP 8.0,默认开启了R8 full mode,该模式下,混淆时会将泛型擦除,RxHttp v3.2.1也对该模式进行了兼容 #471