ransformResourcesWithMergeJavaResForDebug问题
错误内容:
Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. > java.io.IOException: Could not delete path '...\app\build\intermediates\transforms\mergeJavaRes\debug\0.jar'.
尝试下在 app 下的 build.gradle 中的 android 部分增加一段配置,如下面这段代码所示:
packagingOptions { exclude 'META-INF/rxjava.properties' exclude 'META-INF/LICENSE' exclude 'META-INF/DEPENDENCIES' }
解决java.io.IOException: Could not delete path 这个问题需要定位path文件路径下删除指定文件,如果提示一下内容:
操作无法完成 因为文件已在openJDK Platform binary中打开
则先将Andriod Studio关掉删除,重新启动打开项目就行了