Rxjava: subscribeOn (rx.Scheduler) in Observable cannot be applied to (io.reactivex.Scheduler)

Created on 10 Nov 2016  ·  3Comments  ·  Source: ReactiveX/RxJava

Gradle:
// 编译RxJava
compile 'io.reactivex:rxjava:1.2.2'
// 编译RxAndroid
compile 'io.reactivex:rxandroid:1.2.1'
// 编译Retrofit网络加载框架
compile 'com.squareup.retrofit2:retrofit:2.1.0'
// 编译Retrofit网络加载框架直接解析JSON数据变成JAVA对象
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
// 编译Retrofit对RxJava的支持
compile 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0'

Question

Most helpful comment

You have the wrong imports:

compile 'io.reactivex.rxjava2:rxjava:2.0.0'
compile 'io.reactivex.rxjava2:rxandroid:2.0.0'

All 3 comments

You have the wrong imports:

compile 'io.reactivex.rxjava2:rxjava:2.0.0'
compile 'io.reactivex.rxjava2:rxandroid:2.0.0'

@akarnokd thank you

You are welcome.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nltran picture nltran  ·  4Comments

hoc081098 picture hoc081098  ·  3Comments

theblang picture theblang  ·  3Comments

dsvoronin picture dsvoronin  ·  4Comments

yubaokang picture yubaokang  ·  3Comments