如果下载有任何问题,请参考:http://source.android.com/source/downloading.html
host#curl http://android.git.kernel.org/repo > ~/bin/repo //此方法在ubuntu下已经获得不了repo。
于是在百度上查找了挺多办法,都不可用,最后找到一个,可以获得repo的方法如下:
host#mkdir ~/bin
host#curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo" > ~/bin/repo
host#chmod a+x ~/bin/repo
host#PATH=~/bin:$PATH
下载Android源代码,如下
host#mkdir AndroidSrc
host#cd AndroidSrc
host#repo init -u git://codeaurora.org/platform/manifest.git -b gingerbread
host#repo sync
下载源码的过程还是比较漫长的,最好还是现休息一下啊!!
转载:http://hi.baidu.com/taosera/item/e4d82e0efae69d2bcc34ead6