failed for task ':app:clean'. > Unable to delete file:
来源:互联网 发布:java 限制访问次数 编辑:程序博客网 时间:2024/05/23 01:57
在使用Android studio Clean Project 过程中爆了下面这个错误
Error:Execution failed for task ':app:clean'.> Unable to delete file: D:\demo\warehousekeeper-01139949\app\build\intermediates\exploded-aar\com.android.databinding\adapters\1.2.1\jars\classes.jar
上Stack Overflow查找解决方案,这个错误是build文件太过顽强在clean的时候删除不了,
解决方案
- 关掉Android studio然后找到相应的目录删除掉报错不能删除的文件
- 在Model 的build.gradle
中加上
task clean(type: Exec) { ext.lockhunter = '\"C:\\LockHunter.exe\"' def buildDir = file(new File("build")) commandLine 'cmd', "$lockhunter", '/delete', '/silent', buildDir}
FLY:Stackoverflow
0 0
- failed for task ':app:clean'. > Unable to delete file:
- Error:Execution failed for task ':app:clean'. > Unable to delete file: xxx.file
- Error:Execution failed for task ':app:clean'. > Unable to delete file: xxx.file
- Error:Execution failed for task ':app:clean'. > Unable to delete file: xxx.file
- 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 file问题解决
- Gradle Error: Execution failed for task ':app:clean'. Unable to delete file
- Error:Execution failed for task ':app:clean'. > Unable to delete directory: E:\jiajian\jiajian\app\b
- Execution failed for task ':app:clean' Unable to delete directory: ..\app\build\outputs\apk
- Error:Execution failed for task ':app:clean'. > Unable to delete directory: E:\Work\Testjni\app\buil
- 解决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:......
- 解决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
- Android打包混淆压缩
- 界面设计常用资源
- 最小生成树与最短路径的区别
- Android 6.0 运行时权限 在实际商业项目中的使用
- HAUT 1262 魔法宝石 (最短路变形 or 暴力)
- failed for task ':app:clean'. > Unable to delete file:
- Log4j使用总结
- Jconsole监控远程tomcat
- ACM 打印沙漏
- base64解密
- Image ScaleType属性
- 大型项目架构演进过程及思考的点
- Android Canvas绘图
- Inglish-Number Translator