Android Studio编译失败提示"It is currently in use by another Gradle instance"异常处理

Android Studio 编译项目时失败,Terminal控制台提示:It is currently in use by another Gradle instance,最终Build Failed。在StackOverFlow上面找到了解决方案,在Terminal中执行如下指令:

find ~/.gradle -type f -name "*.lock" | while read f; do rm $f; done

等待命令执行成功,重新clean,build后成功解决该问题。

你可能感兴趣的:(Android Studio编译失败提示"It is currently in use by another Gradle instance"异常处理)