注:
本文只是博主学习记录分享,仅供参考。如有错误请指出,谢谢!
android 源码编译过程中,终端卡住无反应,关闭终端后再次编译报如下错误:
start build android
02:12:32 Waiting up to 10s to lock out/.lock to ensure no other Soong process is running in the same output directory
02:12:42 Tried to lock out/.lock, but timed out polling every 1s until 10s . Make sure no other Soong process is using it
#### failed to build some targets (10 seconds) ####
02:12:42 Waiting up to 10s to lock out/.lock to ensure no other Soong process is running in the same output directory
02:12:52 Tried to lock out/.lock, but timed out polling every 1s until 10s . Make sure no other Soong process is using it
#### failed to build some targets (10 seconds) ####
Build android failed!
分析原因:
应该是前面创建的编译终端异常关闭有关
解决方法:
删除 out 目录下的 .lock 文件
rm out/.lock