Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDevDebug'.
> com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK push_version
File1: E:\input\porject\porject\app\build\intermediates\exploded-aar\porject\easeUI_CN\unspecified\jars\classes.jar
File2: E:\input\porject\porject\app\build\intermediates\exploded-aar\porject\push\unspecified\jars\classes.jar
> com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK push_version
File1: E:\input\porject\porject\app\build\intermediates\exploded-aar\porject\easeUI_CN\unspecified\jars\classes.jar
File2: E:\input\porject\porject\app\build\intermediates\exploded-aar\porject\push\unspecified\jars\classes.jar
今天在更新友盟+的最近SDK,结果在更新完以后,运行出现了这个问题,我这用的是环信即时通信和友盟推送。这两者都有离线推送的需求,有部分文件应该是冲突到了
解决办法:
packagingOptions { exclude 'push_version' }