关于android 4.2源码 download及compile问题!

关于android 4.2源码 download及compile问题!


Download总是出错,解决方法如下:

1. 通过认证下载:

    -https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=413937457453.apps.googleusercontent.com&scope=https://www.googleapis.com/auth/gerritcodereview&redirect_uri=https://www.googlesource.com/new-password&state=android


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

74.125.237.1 dl-ssl.google.com
173.194.72.82 googlesource.com
74.125.31.82 android.googlesource.com


4. 编译时注意java的jdk的安装:
# ./jdk-6u38-linux-x64.bin



评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值