Skip to content
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

闪退问题,java.lang.NoSuchFieldError #457

Closed
xuegao-tzx opened this issue Jul 23, 2023 · 9 comments
Closed

闪退问题,java.lang.NoSuchFieldError #457

xuegao-tzx opened this issue Jul 23, 2023 · 9 comments

Comments

@xuegao-tzx
Copy link

xuegao-tzx commented Jul 23, 2023

具体日志:

java.lang.NoSuchFieldError: No field Companion of type Lrxhttp/wrapper/param/RxHttp$Companion; in class Lrxhttp/wrapper/param/RxHttp; or its superclasses (declaration of 'rxhttp.wrapper.param.RxHttp' appears in /data/app/~~WVAd3gIT1M1mJTpDa9hgUQ==

Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@cbf6fd7, Dispatchers.IO]
RxHttp.postJson("/test")
      .add("country", verify.country)
      .toAwait<XCLApiBean.VerifyInfo>()
      .tryAwait()
@liujingxing
Copy link
Owner

怎么接入的?rxhttp-compiler有没有依赖多次?

@xuegao-tzx
Copy link
Author

怎么接入的?rxhttp-compiler有没有依赖多次?

implementation("com.github.liujingxing.rxhttp:rxhttp:3.1.1")
ksp("com.github.liujingxing.rxhttp:rxhttp-compiler:3.1.1")

@liujingxing
Copy link
Owner

就这,没其他得了?

@xuegao-tzx
Copy link
Author

就这,没其他得了?

还有基础的okhttp3的依赖 com.squareup.okhttp3:okhttp

@liujingxing
Copy link
Owner

一般这个问题是多个module依赖了rxhttp-compiler导致的,检查下

@xuegao-tzx
Copy link
Author

好的

@liujingxing
Copy link
Owner

问题解决了吗

@q947721485
Copy link

java.lang.NoSuchFieldError: No field Companion of type Lrxhttp/wrapper/param/RxHttp$Companion; in class Lrxhttp/wrapper/param/RxHttp; or its superclasses (declaration of 'rxhttp.wrapper.param.RxHttp' appears in /data/app/~~WKe7naLd7ecjnJoA3eKrWQ==/com.xishidaojia.fuwu-XHrp4duSyPJkNugOeeDssA==/base.apk!classes10.dex)
环境 使用ksp编译 版本3.2.3 ksp版本 1.9.20-1.0.14 无多module依赖 在compose 目前不知道具体问题在什么地方

@liujingxing
Copy link
Owner

#480

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants