您的位置:首页 > 移动开发 > Android开发

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

2013-01-27 11:09 423 查看
关于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[/code] 
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 stackand 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.comeee.fff.ggg.hhh android.googlesource.com
74.125.237.1 dl-ssl.google.com173.194.72.82 googlesource.com74.125.31.82 android.googlesource.com
4. 编译时注意java的jdk的安装:# ./jdk-6u38-linux-x64.bin
                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐