Android运行项目报错:Error:Execution failed for task ':app:clean'. > Unable to delete directory:
来源:互联网 发布:网页源码看不懂 编辑:程序博客网 时间:2024/06/05 16:18
问题
运行项目的时候报了如下错误
Error:Execution failed for task ':app:clean'.> Unable to delete directory: D:\workspace\AS_workspace\xxx\app\build\xxx
一般都是说不能删除app\build\下的某个文件夹
解决
方法一:
clean或者rebuild下在运行, 一般可以解决。
方法二:(方法一不能解决的情况)
关掉AS,手动删除上面报错的某个文件夹(因为app\build\下的文件都是编译的时候生成的,删除不会影响项目),重启AS即可解决。
方法三:(方法二不能解决的情况)
在方法二的基础上手动删除报错的文件夹后,关机-重启电脑-开启AS即可解决。
方法四:(终极解决方案)
在上面三种方法都不能解决的情况,只能舍弃AS的Instant Run功能。
关闭Instant Run的快速编译功能,去掉如图中的勾勾即可。如图:
阅读全文
1 0
- Android运行项目报错:Error:Execution failed for task ':app:clean'. > Unable to delete directory:
- Error:Execution failed for task ':app:clean'. > Unable to delete directory: E:\jiajian\jiajian\app\b
- Error:Execution failed for task ':app:clean'. > Unable to delete directory: E:\Work\Testjni\app\buil
- Error:Execution failed for task ':app:clean'. > Unable to delete directory: /media/file/workspaces/a
- Error:Execution failed for task ':app:clean'. > Unable to delete directory:
- Error:Execution failed for task ':app:clean'. > Unable to delete directory:
- Error:Execution failed for task ':app:clean'. > Unable to delete directory:......
- Error:Execution failed for task ':app:clean'. > Unable to delete directory 终极解决方案
- Error:Execution failed for task ':app:clean'. > Unable to delete directory: C:\Users\hasee\Desktop\B
- Error:Execution failed for task ':app:clean'. > Unable to delete directory
- Error:Execution failed for task ':app:clean'. > Unable to delete directory: D:\testDlaner\MyNDKDemo\
- Error:Execution failed for task ':app:clean'. > Unable to delete directory: 最新解决方法
- Error:Execution failed for task ':app:clean'. > Unable to delete directory 解决方案
- Android Error:Execution failed for task ':charts:clean'. > Unable to delete directory:
- 错误信息,clean失败 Error:Execution failed for task ':clean'. > Unable to delete directory :\build\intermed
- Error : Execution failed for task : 'clean' . > unable delete directory : \build\...
- AS开发中出现Error(一)——Error:Execution failed for task ':app:clean'. > Unable to delete directory
- Execution failed for task ':app:clean' Unable to delete directory: ..\app\build\outputs\apk
- rman配置+配置详细+修改配置+rman数据字典
- servlet中乱码处理,传参数
- JAVASE基础回顾总结(一)
- 【DP SDOI2008 BZOJ 2037】Sue的小球
- llightbox使用 (图片放大效果)
- Android运行项目报错:Error:Execution failed for task ':app:clean'. > Unable to delete directory:
- Python下的Mysql模块MySQLdb安装详解
- 文章标题
- bash: hdfs: command not found
- 【java基础】IO流的操作分析
- 希尔排序
- Internet 和 internet 的区别是什么?
- leetcode 144
- 在淘宝上搜索电脑原装扇热器