Android Studio升级到了2.0 Gradle也升级到2.1,导入Android Studio1.3 ,Gradle1.2.3 的老项目编译时出这个错
Error:Execution failed for task ':app:clean'.
> Unable to delete directory:
clean,rebuild都不行,关闭Android Studio,把出错的/app/build 文件夹删除,重启再clean就好了,但是下次build的时候还是出这个问题,在code.Google.com上找到很多人升级到2.0出这个错误,把 Instant Run 禁用了,clean,Sync之后就好了。
File->settings->Build,Execution,Deployment->instant run
//取消勾选Enable Instant Run....
转载地址:http://www.07net01.com/2016/04/1461890.html