关于android 4.2源码 download及compile问题!
Download总是出错,解决方法如下:
1. 通过认证下载:
repo init -u https://android.googlesource.com/a/platform/manifest
repo init -u https://android.googlesource.com/a/platform/manifest -b android-4.2.1_r1
2. More rarely, Linux clients experience connectivity issues, getting stuck in the middle of downloads (typically during "Receiving objects"). It has been reported that tweaking the settings of the TCP/IP stack and using non-parallel commands can improve the situation. You need root access to modify the TCP setting:
$ sudo sysctl -w net.ipv4.tcp_window_scaling=0
$ repo sync -j1
3. 关于网络:
You can resolve them with the nslookup
command, which will give you one numerical IP address for each of those (typically in the "Address" part of the output).
$ nslookup googlesource.com
$ nslookup android.googlesource.com
You can then hard-code them locally by editing /etc/hosts
, and adding two lines in that file, of the form:
aaa.bbb.ccc.ddd googlesource.com
eee.fff.ggg.hhh android.googlesource.com
173.194.72.82 googlesource.com
74.125.31.82 android.googlesource.com