ReactiveX / RxAndroid

RxJava bindings for Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BUG with gradle 3.6.1 and RxJava and RxAndroid 3.0.0

MS893 opened this issue · comments

Hi,

Using gradle 3.5.2 my app is working fine, but after updating to 3.6.1, it crashes

Caused by: java.lang.VerifyError: Verifier rejected class com.skydev.cosmic.oKHttp.HopteamLogin: java.lang.Integer com.skydev.cosmic.oKHttp.HopteamLogin.Login(io.reactivex.rxjava3.core.ObservableEmitter) failed to verify: java.lang.Integer com.skydev.cosmic.oKHttp.HopteamLogin.Login(io.reactivex.rxjava3.core.ObservableEmitter): [0x85C] register v7 has type Conflict but expected Precise Reference: java.lang.String (declaration of 'com.skydev.cosmic.oKHttp.HopteamLogin' appears in /data/app/com.skydev.cosmic-yBVjRLIcvNTMQXci4Ew9hg==/base.apk!classes2.dex)

Here is the code
public static Observable<Integer> loginObservable() { return Observable.create(emitter -> { Login(emitter); emitter.onComplete(); }); }

It crashes on the

return Observable.create(emitter -> {

I'm assuming you mean Android Gradle plugin version, not Gradle version, and that likely indicates that a change in R8 has produced a bug in your application (assuming, again, that you're using minifyEnabled=true).

Please file a bug at https://issuetracker.google.com/issues/new?component=326788. This is not related to RxAndroid or RxJava directly.

Thank you Jake for the feedback.