遇到的bug如下:
Information:Gradle tasks [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:compileDebugSources, :app:compileDebugAndroidTestSources, :xutils:generateDebugSources, :xutils:generateDebugAndroidTestSources, :xutils:compileDebugSources, :xutils:compileDebugAndroidTestSources]
:clean UP-TO-DATE
:app:clean FAILED
Error:Execution failed for task ':app:clean'.
> Unable to delete directory: 盘符\项目名称\app\build\outputs\apk
Information:BUILD FAILED
Information:Total time: 2.185 secs
Information:1 error
Information:0 warnings
Information:See complete output in console
对于这种顽固性的bug,我困扰了好久,即使删除了build文件或者clean这个项目,但是不能彻底的删除,再编译时或者关机重启电脑后还是会出现这种错误。操作不了这个apk文件,这时我们就要把当前的项目重新拷贝一份,再重新导入到as中,就完美的解决了这个bug,非常管用,本人亲自测试