Gradle 构建的时候出现了如下错误: java.io.IOException: Could not delet folder "xxx"
2018-03-13 11:34
453 查看
AndroidStudio Gradle 构建的时候出现了如下错误
Error:Execution failed for task ‘:app:processDebugResources’.
java.io.IOException: Could not delete folder C:\Users\xxx\AndroidStudioProjects\MyApplication\app\build\xxx
如何解决:
1 .
2 . 如果你的项目构建采用的JDK是java8,你应该在module下的
File 目录下 点击 Invalidate Cache & Restart
Error:Execution failed for task ‘:app:processDebugResources’.
java.io.IOException: Could not delete folder C:\Users\xxx\AndroidStudioProjects\MyApplication\app\build\xxx
如何解决:
1 .
你可以尝试删除文件路径下的文件夹
2 . 如果你的项目构建采用的JDK是java8,你应该在module下的
build.gradle中添加如下代码
android { compileOptions { sourceCompatibility 1.8 targetCompatibility 1.8 } }
File 目录下 点击 Invalidate Cache & Restart
To all the viewers visiting this page, as per my recent experience, 'Invalidate Cache & Restart' solves the problem. No need to disable/enable instant run and deleting folders manually. (Android Studio 3.0.1)
相关文章推荐
- mybatis错误——java.io.IOException: Could not find resource com/xxx/xxxMapper.xml
- mybatis错误——java.io.IOException: Could not find resource com/xxx/xxxMapper.xml
- hadoop错误Could not obtain block blk_XXX_YYY from any node:java.io.IOException:No live nodes contain current block
- mybatis错误——java.io.IOException: Could not find resource com/xxx/xxxMapper.xml
- Spark错误– java.io.IOException: Could not locate executable null\bin\winutils.exe in the
- android eclipse gradle 构建 出现 Could not create plugin of type 'AppPlugin' 等错误
- (错误)启动ActiveMQ报错:Transport Connector could not be registered in JMX: java.io.IOException: Failed to bind to server socket: stomp://0.0.0.0:61613?
- Error:Execution failed for task ':app:processDebugResources'. > java.io.IOException: Could not delet
- mybatis异常01 - java.io.IOException: Could not find resource com/xxx/xxxMapper.xml
- IntelliJ idea在Spring配置无错误时,装配对象出现 Could not autowire. no beans of "XXX" type found
- Mybatis java.io.IOException: Could not find resource com/xxx/xxxMapper.xml
- windows环境下springboot集成phoenix时报如下异常: java.io.IOException: Could not locate executable null\bin\winut
- Android错误:项目导入时,出现Exception in thread "main" java.lang.NoClassDef、Could not write file 。。。.classpath
- java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
- 解决 Xamarin 拖拽Plain Text 于Layout上时 出现 “The layout could not be loaded:java.lang.System.arraycopy([CI[CII)V” 错误
- 使用myeclipse启动tomcat时出现这种错误“Could not publish to the server. java.lang.NullPointerException”
- java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries
- Android出现W/System.err(384): java.io.FileNotFoundException: /mnt/sdcard/cache/XXX
- struts2文件下载出现Can not find a java.io.InputStream with the name的错误
- apache-karaf-3.0.0发布features,出现"java.io.IOException: Error resolving artifact"异常解决