from:http://blog.csdn.net/kevinacc/article/details/6882907
众所周知的原因,现在不能官方的地址下载android源码。repo都无法下载,用别人的,或者已有的,提示
Connection 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
curl "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 repository
Now, you can safely download the repository, like so:
mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY
repo init -u git://codeaurora.org/platform/manifest.git -b gingerbread
repo sync
and start the development…