编译Android14遇到lunch不显示target的问题

参考

现象

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,应该能显示所有选项了
posted @ 2024-10-20 11:04  摩斯电码  阅读(30)  评论(0编辑  收藏  举报