android编译笔记

清华大学镜像:https://mirrors.tuna.tsinghua.edu.cn

linaro镜像:https://android-git.linaro.org/

一、repo sync  是出现错误:

error: Cannot fetch platform/prebuilts/qemu-kernel 
fatal: unable to connect to aosp.tuna.tsinghua.edu.cn:
aosp.tuna.tsinghua.edu.cn[0: 101.6.6.177]: errno=Connection refused

aosp.tuna.tsinghua.edu.cn[1: 2402:f000:1:416:101:6:6:177]: errno=Network is unreachable

解决办法:

更换android下载源  vim .repo/manifest.xml

把fetch="https://aosp.tuna.tsinghua.edu.cn/"替换成fetch="git://Android.git.linaro.org/"

再次repo sync  就OK了

二、

找了好久的原因,还以为是ninja的原因,最后发现是uboot没有编译,大写的尴尬!

cd uboot  && make CROSS_COMPILE=aarch64-linux-gnu- kvim_defconfig  && make CROSS_COMPILE=aarch64-linux-gnu-

三、

 

apt-get install bc

date:2018/6/29

 

四、Couldn't find idegen.jar. Please run make first.

make idegen
再次 ./development/tools/idegen/idegen.sh  就能正常生成android.ipr了 

date:2018/7/1

五、ninja: build stopped: subcommand failed.

https://blog.csdn.net/gh1026385964/article/details/80581218

date:2018/7/2

六、fatal: fork: Cannot allocate memory

https://juejin.im/entry/58c63e34da2f605dc5aa992f

date:2018/7/19

七、fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle

1、git clone https://gerrit-googlesource.lug.ustc.edu.cn/git-repo

2、mv git-repo  repo    && mv repo  .repo

3、repo init -u https://github.com/khadas/android_manifest.git -b Nougat

4、repo sync -j8

参考:http://www.cnblogs.com/dinphy/p/5669384.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值