參考
- Android 系統原始碼編譯
- https://xdaforums.com/t/lunch-failed.4665348/
- https://www.huigll.com/cannot-display-lunch-menu/
現象
android-14.0.0_r74$ . build/envsetup.sh
android-14.0.0_r74$ lunch
You're building on Linux
Warning: Cannot display lunch menu.
Note: You can invoke lunch with an explicit target:
usage: lunch [target]
Which would you like? [aosp_cf_x86_64_phone-trunk_staging-eng]
Pick from common choices above (e.g. 13) or specify your own (e.g. aosp_barbet-trunk_staging-eng):
解決
使用下面的步驟編譯:
1、lunch
2、回車,選擇到預設的
3、build_build_var_cache
4、再lunch,應該能顯示所有選項了