下載 android 源碼

來源:互聯網
上載者:User

下載 android 源碼   @ubuntu 12.04 2013年06月19日 星期三 16時23分21秒 參考資料:1. google : http://source.android.com/source/downloading.html#initializing-a-repo-client2. Github下載Android源碼 : http://www.cnblogs.com/akira90/archive/2013/03/08/2950631.html   android4.2源碼下載過程 : http://blog.csdn.net/lengxibo/article/details/8299888#reply主要依照官方的說明 操作過程如下:

$ mkdir ~/bin$ PATH=~/bin:$PATH$ sudo apt-get install curl$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo$ chmod a+x ~/bin/repo$ mkdir WORKING_DIRECTORY$ cd WORKING_DIRECTORY

$ repo init -u https://android.googlesource.com/platform/manifest

# 擷取最新的 sourcecode
XXXXXXXXXXX  $ repo init -u https://android.googlesource.com/platform/manifest -b android-4.2.2_r1.2

確認資訊 : 說要更改的話,使用 repo --config- ?? (  忘了)
**************************************************************
Your Name  [jh]: jh
Your Email [jh@jh-ubt.(none)]: XXXXXXXXX@gmail.com
Your identity is: jh <XXXXXXXX@gmail.com>
is this correct [y/N]? y
**************************************************************

下載:

$ repo sync

###############################################################
剛開始執行輸出:
Get https://gerrit.googlesource.com/git-repo
就不動了。

搜到有說要 更改hosts , 於是:
ping gerrit.googlesource.com  
得到 ip 是: 173.194.72.82 
###############################################################

$ sudo cp /etc/hosts /etc/hosts.bak$ sudo gedit /etc/hosts

增加:
# **************************************************************

173.194.72.82 gerrit.googlesource.com
173.194.72.82 www.googlesource.com
173.194.72.82 android.googlesource.com
203.208.46.172 cache.pack.google.com
# 59.24.3.173 cache.pack.google.com

# *************************************************************

再次執行

$ repo sync

一路順暢!

2013年06月19日 星期三 16時22分44秒 開始下載

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.