Android:Error:Execution failed for task ':app:clean'. > Unable to delete directory

as  clean项目之后有时候会报错。

Android:Error:Execution failed for task ':app:clean'. > Unable to delete directory

可以找得到目录删掉,然后重启as,但是下次clean可能又会报类似的错误。

解决方法如下:

进入File-Setting-Build,Execution,Deployment-Instant Run

取消勾选 Restart activity on code changes

然后clean.

Android:Error:Execution failed for task ':app:clean'. > Unable to delete directory

上一篇:unity 组件开发


下一篇:python学习笔记15(面向对象编程)