https://kotlinlang.org logo
#android
Title
# android
g

gildor

09/14/2017, 2:05 PM
sorry, I misread your dependnecies, you still need rxandroid to have an access to AndroidSchedulers
s

stepan.zalis

09/14/2017, 2:09 PM
compile ‘io.reactivex.rxjava2rxandroid2.0.1’ compile ‘io.reactivex.rxjava2rxjava2.1.3’ and still duplicated files error
g

gildor

09/14/2017, 2:09 PM
could you show your error message
s

stepan.zalis

09/14/2017, 2:11 PM
g

gildor

09/14/2017, 2:12 PM
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

stepan.zalis

09/14/2017, 2:17 PM
save my day! thanks
e

edwardwongtl

09/15/2017, 5:17 AM
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.
2 Views