Error:Execution failed for task ':app:clean'. > Unable to delete directory: C:\Users\hasee\Desktop\B
2017-02-20 10:27
489 查看
大家早上好,早上就遇到问题Error:Execution failed for task ':app:clean'.
> Unable to delete directory: C:\Users\hasee\Desktop\BeeKnightUser\app\build\intermediates\exploded-aar\com.android.support\transition\25.1.1这个问题,我就纳闷了,在我clean的时候提示这个问题,提示的是不能删除那个包,我没有删除啊。我的解决方法是在build.gradle里面加入如下代码:
如还有更好的方法,希望大神交流!
> Unable to delete directory: C:\Users\hasee\Desktop\BeeKnightUser\app\build\intermediates\exploded-aar\com.android.support\transition\25.1.1这个问题,我就纳闷了,在我clean的时候提示这个问题,提示的是不能删除那个包,我没有删除啊。我的解决方法是在build.gradle里面加入如下代码:
task clean(type: Exec) { ext.lockhunter = '\"C:\\LockHunter.exe\"' def buildDir = file(new File("build")) commandLine 'cmd', "$lockhunter", '/delete', '/silent', buildDir }
如还有更好的方法,希望大神交流!
相关文章推荐
- Error:Execution failed for task ':app:clean'. > Unable to delete directory 解决方案
- Android 异常: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: /media/file/workspaces/a
- 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
- Android运行项目报错: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: 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: 最新解决方法
- 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 ':clean'. > Unable to delete directory :\build\intermediates
- Error:Execution failed for task ':app:clean'. > Unable to delete file: xxx.file
- Error:Execution failed for task ':zebradrive_sdk:clean'. > Unable to delete directory: D:\AndroidStu
- Error:Execution failed for task ':clean'. > Unable to delete directory :\build\intermediates
- 错误信息,clean失败 Error:Execution failed for task ':clean'. > Unable to delete directory :\build\intermed