Cannot resolve rxjava2 with gradle 3.0

I found the solution. The issue was my proxy, it blocks https and I need to use the http version of repository. So instead of:

repositories {
        jcenter()
    }

I use now:

repositories {
        jcenter {
            url "http://jcenter.bintray.com/"
        }
    }

and it compiles now.


Changing

implementation 'io.reactivex.rxjava2:rxjava:2.1.6'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'

to

api 'io.reactivex.rxjava2:rxjava:2.x.x'
api 'io.reactivex.rxjava2:rxandroid:2.0.1'

worked for me


It will give error because official release for rxjava is 2.1.5.

simply change below lines of code

implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
implementation 'io.reactivex.rxjava2:rxjava:2.1.5'

Official documentation