Skip to content

R8 full mode 完整模式兼容问题 #471

@liujingxing

Description

@liujingxing

RxHttp 版本 v3.2.0

通过android.enableR8.fullMode=true开启R8完整模式,或将AGP升级至8.0及以上版本,将默认开启完整模式,此时执行以下代码,将发生闪退

RxHttp.get("...")
   .toXxx(object: SmartParser<Xxx>(){})   //通过匿名内部类,创建任意继承TypeParser的类
   ...

闪退日志

java.lang.RuntimeException: Missing type parameter.
   at rxhttp.wrapper.utils.TypeUtil.getActualTypeParameters(TypeUtil.java:23)
   at rxhttp.wrapper.parse.TypeParser.<init>(TypeParser.java:18)
   at com.example.httpsender.parser.ResponseParser.<init>(ResponseParser.kt:32)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions