解决Execution failed for task ':app:clean'. > Unable to delete directory问题

在使用Android Studio编译工程的时候,出现了如下错误:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:clean'.
> Unable to delete directory: F:\Android\AndroidStudioWorkSpace\AIDLDemo\app\build\outputs\apk

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

终极解决办法:


删除F:\Android\AndroidStudioWorkSpace\AIDLDemo\app\ 目录下的build文件夹,然后重启Android Studio即可!

但是直接删除build文件夹删除不了,可以使用360文件粉碎机删除文件就可以了!

你可能感兴趣的:(Android开发杂项)