编译android源码 lunch错误

来源:互联网 发布:淘宝搜不到网盘会员 编辑:程序博客网 时间:2024/06/15 04:43

按照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 



1 0
原创粉丝点击