I had a similar problem with RxKotlin, the IDE had Gradle offline. (Settings-> Gradle → Disable Offline).
In addition, I suggest checking that you have the correct version here .
This helped me set up RxKotlin because there was only a xyz version.
Gradle import work:
compile 'io.reactivex:rxkotlin:2.0.0-RC1'
source share