2025年编译android源码 lunch错误

编译android源码 lunch错误按照 android 源码的编译步骤 执行完 envsetup sh 脚本后 lunch 报错 fanr envsetup sh fanr lunch No such file home topeet lunchrc Google 后找到答案 First a control question when you said you

大家好,我是讯享网,很高兴认识大家。

按照android源码的编译步骤,执行完envsetup.sh脚本后lunch报错

fanr:$ ./envsetup.sh

fanr:$ lunch

No such file: /home/topeet/.lunchrc


Google后找到答案:

First a control question, when you said you ran envsetup.sh, you really meant source build/envsetup.sh right? If not, that is likely the cause of your problems.

If that doesn't solve your problem, that is probably because another lunch (in your case it looks likehttp://code.sat.qc.ca/trac/lunch) is invoked. Try uninstalling the other lunch or at least remove it from your PATH to ensure that it is lunch from Android that is run.


讯享网

之前安装了另一个Python的lunch,所以把本地的lunch命令从环境变量中删除

路径为 /usr/bin/


sudo rm /usr/bin/lunch*


重复上述步骤后通过

fanr:$ lunch 
aosp_arm64-eng                  evk_6sl-user
aosp_arm-eng                    full_fugu-userdebug
aosp_deb-userdebug              hdmidongle_6dq-eng
aosp_flo-userdebug              hdmidongle_6dq-user
aosp_fugu-userdebug             imx53_smd-eng
aosp_grouper-userdebug          imx53_smd-user
aosp_hammerhead-userdebug       m_e_arm-userdebug
aosp_mako-userdebug             mini_emulator_arm64-userdebug
aosp_manta-userdebug            mini_emulator_mips-userdebug
aosp_mips64-eng                 mini_emulator_x86_64-userdebug
aosp_mips-eng                   mini_emulator_x86-userdebug
aosp_shamu-userdebug            sabreauto_6q-eng
aosp_tilapia-userdebug          sabreauto_6q-user
aosp_x86_64-eng                 sabreauto_6sx-eng
aosp_x86-eng                    sabreauto_6sx-user
arm2_6dq-eng                    sabresd_6dq-eng
arm2_6dq-user                   sabresd_6dq-user
arm2_6sl-eng                    sabresd_6sx-eng
arm2_6sl-user                   sabresd_6sx-user
evk_6sl-eng 



小讯
上一篇 2025-03-22 15:03
下一篇 2025-04-01 22:34

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/110141.html