-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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.NoSuchMethodError #578
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
问题解决了吗 |
|
我设置了,但是无效,依然还会报错 |
@blankyn 升级 AGP 看看,可能太旧了 |
我用的3.6.3版本 |
经过测试,as运行没这个问题,但是打包apk就有这个问题。rxandroid 用2.1.1的也可以,唯独升级后有问题 |
此处要改成: .addCallAdapterFactory(RxJava3CallAdapterFactory.createSynchronous())
…------------------ 原始邮件 ------------------
发件人: "ReactiveX/RxAndroid" ***@***.***>;
发送时间: 2021年10月13日(星期三) 下午2:06
***@***.***>;
抄送: "自由 ***@***.******@***.***>;
主题: Re: [ReactiveX/RxAndroid] java.lang.NoSuchMethodError (#578)
@blankyn 升级 AGP 看看,可能太旧了
经过测试,as运行没这个问题,但是打包apk就有这个问题。rxandroid 用2.1.1的也可以,唯独升级后有问题
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
没用的,安卓部分机器有问题,我测试过,目前发现两款机器 |
确认下依赖 是否都是3系列
com.squareup.retrofit2:adapter-rxjava3:2.9.0io.reactivex.rxjava3:rxandroid:3.0.0io.reactivex.rxjava3:rxjava:3.0.0.addCallAdapterFactory(RxJava3CallAdapterFactory.createSynchronous())
…------------------ 原始邮件 ------------------
发件人: "ReactiveX/RxAndroid" ***@***.***>;
发送时间: 2021年11月5日(星期五) 上午10:18
***@***.***>;
抄送: "自由 ***@***.******@***.***>;
主题: Re: [ReactiveX/RxAndroid] java.lang.NoSuchMethodError (#578)
此处要改成: .addCallAdapterFactory(RxJava3CallAdapterFactory.createSynchronous())
…
------------------ 原始邮件 ------------------ 发件人: "ReactiveX/RxAndroid" @.>; 发送时间: 2021年10月13日(星期三) 下午2:06 @.>; 抄送: "自由 @.@.>; 主题: Re: [ReactiveX/RxAndroid] java.lang.NoSuchMethodError (#578) @blankyn 升级 AGP 看看,可能太旧了 经过测试,as运行没这个问题,但是打包apk就有这个问题。rxandroid 用2.1.1的也可以,唯独升级后有问题 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
没用的,安卓部分机器有问题,我测试过,目前发现两款机器
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
I had this problem too, and finally I found the problem. The scenario where the problem occurs is:
I found two ways to solve or circumvent this problem:
from: implementation(name:"libs",ext: "aar") to: implementation(files("libs/libs.aar"))
android.enableDexingArtifactTransform.desugaring=false The cause of the problem lies in the process of desugaring. More specific reasons require us to study the behavior of AGP or D8 |
这是来自QQ邮箱的假期自动回复邮件。您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
2 similar comments
这是来自QQ邮箱的假期自动回复邮件。您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
这是来自QQ邮箱的假期自动回复邮件。您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
OkHttp Dispatcher(48197)
java.lang.NoSuchMethodError
No static method disposed()Lio/reactivex/rxjava3/disposables/Disposable; in class Lio/reactivex/rxjava3/disposables/Disposable; or its super classes (declaration of 'io.reactivex.rxjava3.disposables.Disposable' appears in base.apk!classes3.dex)
1 io.reactivex.rxjava3.android.schedulers.HandlerScheduler$HandlerWorker.schedule(HandlerScheduler.java:91)
2 io.reactivex.rxjava3.core.Scheduler$Worker.schedule(Scheduler.java:402)
3 io.reactivex.rxjava3.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.schedule(ObservableObserveOn.java:161)
4 io.reactivex.rxjava3.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.onComplete(ObservableObserveOn.java:139)
5 io.reactivex.rxjava3.internal.operators.observable.ObservableSubscribeOn$SubscribeOnObserver.onComplete(ObservableSubscribeOn.java:68)
6 retrofit2.adapter.rxjava3.BodyObservable$BodyObserver.onComplete(BodyObservable.java:70)
7 retrofit2.adapter.rxjava3.CallEnqueueObservable$CallCallback.onResponse(CallEnqueueObservable.java:66)
8 retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:161)
9 okhttp3.RealCall$AsyncCall.run(RealCall.kt:138)
10 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
11 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
12 java.lang.Thread.run(Thread.java:929)
What is the problem and how to solve it ?
The text was updated successfully, but these errors were encountered: