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

后端 未结 7 1822
渐次进展
渐次进展 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 18:56

    I encountered the same issue and fixed it by putting below code in app/build.gradle file. Please note that you have to put '*' at the end of path to exclude all the files inside the folder. You will have to change the path of files to be excluded in the below code based on error description.

    compileSdkVersion 25
        buildToolsVersion "24.0.3"
    
        packagingOptions {
            exclude 'com/google/appengine/repackaged/org/apache/commons/codec/language/bm/*'
            exclude 'com/google/appengine/repackaged/org/codehaus/jackson/impl/*'
            exclude 'com/google/appengine/repackaged/org/apache/commons/codec/language/*'
        }
    

提交回复
热议问题