I am trying to run following project : https://github.com/amitshekhariitbhu/RxJava2-Android-Samples
The depencies are:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.1.1'
compile 'io.reactivex.rxjava2:rxjava:2.0.0'
compile 'io.reactivex.rxjava2:rxandroid:2.0.0'
}
But I get following error.
Error:(26, 13) Failed to resolve: io.reactivex.rxjava2:rxandroid:2.0.0 Show in File
Show in Project Structure dialog
Am I doing something wrong ?
I had the similar problem with RxKotlin, IDE had Gradle in Offline mode. (Settings-> Gradle -> Turn off offline mode).
Also, I suggest checking, that you have the correct version here.
It helped me to setup the RxKotlin, because there was only x.y.z.
version.
Working gradle import:
compile 'io.reactivex:rxkotlin:2.0.0-RC1'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With