liujingxing / rxhttp

🔥🔥🔥 Based on OkHttp encapsulation, support Kotlin Coroutines、RxJava2、RxJava3; 30s to get started.
https://juejin.im/post/5ded221a518825125d14a1d4
Apache License 2.0
3.74k stars 457 forks source link

编译报错了 #486

Closed YanYangTan closed 6 months ago

YanYangTan commented 6 months ago

我的是纯java项目,Debug Build时没有问题,使用release Build 就报错了, 能帮我看一下是什么问题吗,感谢 image

YanYangTan commented 6 months ago

C:/Users/YANG/.gradle/caches/modules-2/files-2.1/com.github.liujingxing.rxhttp/rxhttp/3.2.4/ade0e515eedfdcea3fc6d3572a066e4faba33530/rxhttp-3.2.4.jar!/META-INF/rxhttp.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.

liujingxing commented 6 months ago

升级kotlinb版本

YanYangTan commented 6 months ago

不好意思我是菜鸟,我的是java项目,意思是要导入kotlin环境?

liujingxing commented 6 months ago

哦,那不需要,怎么接入的RxHttp,截图看下

YanYangTan commented 6 months ago

哦 我觉得不是你的问题,是这个编译的问题 我看stack overflow的把 app -> build -> outputs -> mapping -> your_app_name -> missing_rules.txt 丢去 proguard-rules.pro 它没报错能release了,我试试能不能run 太感谢你了 大神!