Android Studio编译出现Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.

Error:Execution failed for task ‘:app:transformResourcesWithMergeJavaResForDebug’. > com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/rxjava.properties
如图
Android Studio编译出现Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'._第1张图片
解决办法:
packagingOptions {
exclude ‘META-INF/rxjava.properties’
// … and any other excludes go here
}

你可能感兴趣的:(Android,Studio)