android源碼編譯——從此走上Liunx的不歸路(三)

來源:互聯網
上載者:User

標籤:tps   curl   api   ldl   無法串連到   repo   建立   path   for   

下載android源碼:

1.安裝git和curl:

sudo apt-get install git-core

sudo apt-get install git-core curl

2.下載repo

mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
// 如果上述 URL 不可訪問,可以用下面的:
//curl https://storage-googleapis.lug.ustc.edu.cn/git
//-repo-downloads/repo > ~/bin/repo

3.建立工作目錄

mkdir workspace
cd workspace

4.初始化倉庫

repo init -u git://mirrors.ustc.edu.cn/aosp/platform/manifest

// 清華提供的鏡像源
// repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest

// 中國科技技術大學的鏡像源
// repo init -u git://mirrors.ustc.edu.cn/aosp/platform/manifest

// 如果提示無法串連到 gerrit.googlesource.com
// 編輯~/bin/repo檔案,把REPO_URL一行替換成:REPO_URL=‘https://gerrit-googlesource.lug.ustc.edu.cn/git-repo‘

5.下載android版本源碼

repo init -u git://mirrors.ustc.edu.cn/aosp/platform/manifest -b android-4.0.4_r2.1

6.同步源碼樹

repo sync

 

原文摘自repo下載國內連結android源碼

android源碼編譯——從此走上Liunx的不歸路(三)

聯繫我們

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