1. 程式人生 > >Error:Execution failed for task ':clean'. > Unable to delete directory :\build\intermediates

Error:Execution failed for task ':clean'. > Unable to delete directory :\build\intermediates

Error:Execution failed for task ':clean'. > Unable to delete directory  :\build\intermediates

我用的是Android studio,之前就一直碰到這個問題,用的一種笨方法,就是重啟電腦,一般就可以執行程式了。但是這樣太麻煩了。今日又重新查詢,在這裡http://stackoverflow.com/questions/32914499/error-execution-failed-for-task-appclean-unable-to-delete-file

找到了解決辦法。

進入studio,進入settings,搜尋instant run,進入該介面,有四個選項,第一個預設是打勾的,去其去掉就可以了。