1 问题

运行android studio 无论clean project还是rebuild project,提示如下

Unable to delete directory '*****\MyApplication\app\build'
  Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory.
  - *****\MyApplication\app\build\outputs\apk\debug
  - *****\MyApplication\app\build\outputs\apk
  - *****\long code\MyApplication\app\build\outputs

 

 

 

 

 

 

2 解决办法

在终端找到目录如下

*****\MyApplication\app

 然后直接删除再编译就可以

rm -rf build