清华大学镜像: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