Android源碼下載步驟(Ubuntu)

來源:互聯網
上載者:User

1、設定軟體源
apt-get install  <packagename>     無法使用的解決辦法( Ubuntu 出現apt-get: Package has no installation candidate問題)
# apt-get update
# apt-get upgrade
# apt-get install <packagename>
添加第三方地址:
sudo add-apt-repository "deb www.2cto.com/ lucid partner"
sudo apt-get update
2、安裝git-core、curl
3、下載repo
$curl www.2cto.com>repo
$chmod 777 repo
4、申請下載的帳號和密碼
www.2cto.com5、把上面那段資訊追加到~/.netrc檔案結尾(請檢查目前使用者的許可權, 如果不存在此檔案則自己建立一個),一定要放在目前使用者的home目錄下,root要放到root的home目錄下
6、repo init -u https://android.googlesource.com/a/platform/manifest -b android-2.3.3_r1
7、輸入以下內容,這是為瞭解決repo sync 下載到99%的時候無反應的情況。
$sudo sysctl -w net.ipv4.tcp_window_scaling=0
8、repo sync
作者:iamcai723

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.