Closed yangmao1986 closed 7 years ago
Your project setup is likely wrong and I don't understand why you can't go with the default gradle dependency setup. Also you should ask this question on StackOverflow where more experienced Android developers frequent.
This seems like a proguard issue and not related to RxJava itself. You have to check if your proguard is cleaning up more stuff than it should and how does it behave with your custom jar, and adapt the rules, especially if that jar has something changed compared to the standard rx lib. Normally you dont need specific proguard rules for 2.x but like akarnokd said this is an Android problem and not an Rx one and is related to proguard and/or multidex.
Looks like this question has been answered. If you have further input on the issue, don't hesitate to reopen this issue or post a new one.
Change observeOn(AndroidSchedulers.mainThread()) to .observeOn(AndroidSchedulers.mainThread(),false,100),It would be work out,God bless you!
I use compile 'io.reactivex.rxjava2:rxjava:2.1.0' compile 'io.reactivex.rxjava2:rxandroid:2.0.1' in my app.gradle , my app run is ok.
but for the project-request, i should use these jar from my project lib, so i download it from maven, and put it into my-project /lib , and rewrite app.gradle compile files('lib/rxjava-2.1.0.jar') compile(name: 'rxandroid-2.0.1', ext: 'aar') , my code
when it run, it will crash ,and log is