您的位置:首页 > 运维架构 > 网站架构

通过镜像网站下载android源码

2013-06-18 23:29 676 查看
from:http://blog.csdn.net/kevinacc/article/details/6882907

众所周知的原因,现在不能官方的地址下载android源码。repo都无法下载,用别人的,或者已有的,提示 [text]view plaincopyConnection refused

网上折腾了一下,找到了一个代替的方法,目前正在下载中~~~
原因是不久前 Kernel.org 被黑掉,外国人建立的一个镜像源。方法如下,缺点是速度比较慢。I will describe another way to get the Android source codes if you hadn’t already cloned it’s repo before kernel.org servers went down.

Prepare the environment

[html]view plaincopycurl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo" > ~/bin/repo

chmod a+x ~/bin/repo

PATH=~/bin:$PATH

First, you need to download “repo” script from kernel.org my blog (please,enclose the URL address in double quotes):Download the Android repositoryNow, you can safely download the repository, like so:[html]view plaincopymkdir WORKING_DIRECTORY

cd WORKING_DIRECTORY

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

repo sync

and start the development…
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: