首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

上载Android源代码出错,请问会是什么原因

2012-09-24 
下载Android源代码出错,请教会是什么原因下载android源代码,在这一步出错:repo init -u https://android.g

下载Android源代码出错,请教会是什么原因
下载android源代码,在这一步出错:
repo init -u https://android.googlesource.com/a/platform/manifest

fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: HTTP error 403

一个下午都一直出错,有时候是HTTP error 113 有时候是HTTP error 403

请教一下大侠们会是什么原因
已使用goagent,大家懂得。
goagent的提示是:
127.0.0.1:33376 - - [Sep 3 19:22:00] "CONNECT gerrit.googlesource.com:443 HTTP/1.0" 200 -
127.0.0.1:33376 - - [Sep 3 19:22:00] "GET https://gerrit.googlesource.com:443/git-repo/clone.bundle HTTP/1.0" 403 -

没办法也尝试了google上面的认证:
The first step is to create a password from the password generator and to save it in ~/.netrc according to the instructions on that page.

The second step is to force authenticated access, by using the following manifest URI: https://android.googlesource.com/a/platform/manifest. Notice how the /a/ directory prefix triggers mandatory authentication. You can convert an existing client to use mandatory authentication with the following command:

但是这边修改~/.netrc,然后我在PC上没发现这个文件,就
sudo gedit ~/.netrc,然后粘贴保存,请教高手如此是否有效。

这个也尝试了
$ sudo sysctl -w net.ipv4.tcp_window_scaling=0
$ repo sync -j1
总而言之,一句话,无效!

崩溃中,请求高手、大侠们解决下

[解决办法]
sudo gedit ~/.netrc 这个不需要sudo
认证过了,下载也是断断续续的,自己写个“死循环”去下就可以了
[解决办法]

探讨

引用:

sudo gedit ~/.netrc 这个不需要sudo
认证过了,下载也是断断续续的,自己写个“死循环”去下就可以了


可是现在repo init还没过哦,是不是跟GFW有关系啊?

[解决办法]
Android那些项目
从来
几乎没有
在官网下载成功过


就算下来了都是.mk那些文件
都是民间源码比较实在

热点排行