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

BUG with gradle 3.6.1 and RxJava and RxAndroid 3.0.0 #562

Closed
MS893 opened this issue Mar 9, 2020 · 2 comments
Closed

BUG with gradle 3.6.1 and RxJava and RxAndroid 3.0.0 #562

MS893 opened this issue Mar 9, 2020 · 2 comments

Comments

@MS893
Copy link

MS893 commented Mar 9, 2020

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 -> {

@JakeWharton
Copy link
Member

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.

@MS893
Copy link
Author

MS893 commented Mar 10, 2020

Thank you Jake for the feedback.

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

2 participants