目前无法下载 android 的解决办法

来源:互联网 发布:售楼用的软件 编辑:程序博客网 时间:2024/04/27 20:03

====

http://hi.baidu.com/cobala/item/fbe667374471bf4e3175a14e


android.git.kernel.org 目前无法下载到 android 的源码了,几经google,终于找到下面的方法:

1,下载 repo

$mkdir android_src

$cd android_src

$curl http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo > repo

$chmod a+x repo

$./repo init -u git://codeaurora.org/platform/manifest.git

按要求输入名字和email。

2,修改repo配置文件中的仓库服务器

$vim .repo/manifest.xml

将 fetch="android.git.kernel.org" 改成 fetch="codeaurora.org", 保存退出vim。

3,同步仓库

$./repo sync

 

然后就是等.........

 

待到 android.git.kernel.org 恢复后,再把 .repo/manifest.xml 中修改打内容恢复回去,同时还要将 ./repo 中的 REPO_URL='git://codeaurora.org/tools/repo.git' 改为 REPO_URL='git://android.git.kernel.org/tools/repo.git',如果 git 不行,就试试 http, https。

0 0
原创粉丝点击