RxJava 1 and RxJava 2 in the same project [duplicate]
问题 This question already has answers here : How to resolve Duplicate files copied in APK META-INF/rxjava.properties (7 answers) Closed 2 years ago . Our project uses RxJava 1: compile 'io.reactivex:rxjava:1.1.6' There is a library we use that uses RxJava 2 internally: compile 'io.reactivex.rxjava2:rxjava:2.0.9' When I do ./gradlew assembleDebug I get this error: com.android.build.api.transform.TransformException:com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK