Error:Execution failed for task ':app:clean'.
> Unable to delete directory: D:\android_studio_project\BusInspection\app\build\outputs\apk
> Unable to delete directory: D:\android_studio_project\BusInspection\app\build\outputs\apk
http://stackoverflow.com/questions/32914499/error-execution-failed-for-task-appclean-unable-to-delete-file
进入studio,进入settings,搜索instant run,进入该界面,有四个选项,第一个默认是打勾的,去其去掉就可以了。
或者:卸载金山毒霸
我也遇到一样的问题
http://stackoverflow.com/questions/32914499/error-execution-failed-for-task-appclean-unable-to-delete-file
使用上面帖子提到的LockHunter发现是金山毒霸在后台占用!卸载他就好了!