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

后端 未结 7 1816
渐次进展
渐次进展 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:07

    I had the same problem. The way I fixed it is adding the packagingOptions in app gradle as described in Duplicated file rxjava.properties

    android {
    
        defaultConfig {
        }
        buildTypes {
        }
        packagingOptions{
            exclude 'META-INF/rxjava.properties'
        }
    }
    
    0 讨论(0)
提交回复
热议问题