':app:clean'. > Unable to delete directory:app\build\intermediates
在android studio 開發時,莫名其妙的出現:
Error:Execution failed for task ':app:clean'. > Unable to delete directory: D:\ProjiectName\app\build\intermediates
我是在操作svn出現的這種情況,解決的辦法也簡單就是找到提示的目錄D:\ProjiectName\app\build\intermediates,先退出AS,然後刪除builde這個資料夾,重新開啟AS就搞定了,然後可以看到builde重新生成正常的了。