sorry, I misread your dependnecies, you still need...
# android
g
sorry, I misread your dependnecies, you still need rxandroid to have an access to AndroidSchedulers
s
compile ‘io.reactivex.rxjava2rxandroid2.0.1’ compile ‘io.reactivex.rxjava2rxjava2.1.3’ and still duplicated files error
g
could you show your error message
s
g
you have some dependency to rxjava 1.x
Please check your dependecies graph
./gradlew appdependencies
but actually, it’s fine, rxjava1 and 2 compatible and can be used in a single project
just exclude this file
Copy code
android {
  packagingOptions {
     exclude 'META-INF/rxjava.properties'
  }
}
👏 1
s
save my day! thanks
e
Although rxjava1 and rxjava2 can be used in the same project, I will still recommend one to choose one version and migrate to it ASAP, cause using both in the same project is really confusing.