编译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 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
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值