Android:Error:Execution failed for task ':app:clean'. > Unable to delete directory

Sometimes an error is reported after as clean project.

You can find the directory and delete it, and then restart as, but the next time clean may report a similar error.

 

The workaround is as follows:

进入File-Setting-Build,Execution,Deployment-Instant Run 

Uncheck Restart activity on code changes 

Then clean.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326064974&siteId=291194637