1. 错误描述
今天用Android Studio进行项目编译的时候,报错如下所示:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':xxx:packageDebug'.
> Failed to create 'XXX\build\outputs\apk\xxx.apks': 拒绝访问。
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2.538 secs
编译不了,然后我打算重新Clean一遍后再重新打包编译。于是去点击Build–>Clean Project,结果clean都报错,如下所示:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':xxx:clean'.
> Unable to delete directory: XXXh\build\outputs\apk
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BU