如果下載有任何問題,請參考: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