任务 \':app:transformResourcesWithMergeJavaResForDebug\'运行错误
执行失败\n因此,我在尝试运行我的项目时不断收到 gradle 构建错误。我搜索过其他解决方案,有些人说添加:
packagingOptions {\n exclude \'META-INF/NOTICE\'\n exclude \'META-INF/LICENSE\' // will not include LICENSE file\n // as noted by @Vishnuvathsan you may also need to include\n // variations on the file name. It depends on your dependencies.\n // Some other common variations on notice and license file names\n exclude \'META-INF/notice\'\n exclude \'META-INF/notice.txt\'\n exclude \'META-INF/license\'\n exclude \'META-INF/license.txt\'\n}\nRun Code Online (Sandbox Code Playgroud)\n\n但它对我不起作用。错误如下:\n错误:任务\':app:transformResourcesWithMergeJavaResForDebug\'执行失败。
\n\n\n\n\ncom.android.build.api.transform.TransformException:com.android.builder.packaging.DuplicateFileException:在 APK META-INF/rxjava.properties 中复制的重复文件
\n
**File1: E:\\Workspace_Android\\TravelStory\\app\\build\\intermediates\\exploded-aar\\cn.bmob.android\\bmob-sdk\\3.5.0\\jars\\classes.jar\nFile2: C:\\Users\\Prometheus\\.gradle\\caches\\modules-2\\files-2.1\\io.reactivex\\rxjava\\1.2.1\\4e4cfa4adc74521d5966799fa5ab70b733552f68\\rxjava-1.2.1.jar**\nRun Code Online (Sandbox Code Playgroud)\n\n我尝试删除 File2,但在编译/gradle 后,文件再次创建。
\n studio 版本是 …
android gradle android-build build.gradle android-gradle-plugin