How to resolve Duplicate files copied in APK META-INF/rxjava.properties

后端 未结 7 1835
渐次进展
渐次进展 2020-12-18 18:20

I am using rxjava and rxvolley on my android aplication. When I try to run it I get this error

Execution failed for task \':testapp:transformResourcesWithMer         


        
7条回答
  •  臣服心动
    2020-12-18 19:04

    I had the same issue.
    In my case I am using Retrofit2 but I assume that the issue is with the rx libraries

    This is the build.gradle (module:app) I am using and in my case works.

    compile 'com.squareup.retrofit2:retrofit:2.0.2'
    compile 'com.squareup.retrofit2:converter-gson:2.0.2'
    compile 'com.squareup.retrofit2:adapter-rxjava:2.0.2'
    
    compile 'io.reactivex:rxandroid:1.1.0' //<-use this
    compile 'io.reactivex:rxjava:1.1.3'    //<-use this
    
    compile 'com.squareup.okhttp3:okhttp:3.1.2'
    compile 'com.squareup.okhttp3:logging-interceptor:3.0.1'
    

    Anyway there is one better solution as you can see on the top

提交回复
热议问题