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後成功解決該問題。

 

參考博客:

https://www.jianshu.com/p/5e29f99577df

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章