Ubuntu14.04下載Android源碼~aosp

create dir:

mkdir ~/bin

PATH=~/bin:$PATH

vim ~/bin/repo 

cp content to repo file ,url is: 

http://7xpgbx.dl1.z0.glb.clouddn.com/repo

或者 curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo

實在不行來這裏複製內容直接粘貼:repo內容

then mkdir for android source:

mkdir ~/code/android_src/

then init repo:

cd ~/code/android_src/
repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-5.1.1_r4

or:

repo init -u git://mirrors.ustc.edu.cn/aosp/platform/manifest -b android-5.1.1_r4

then sync:

repo sync

 

【git使用】Failed to connect to 127.0.0.1 port 1080: Connection refused

查詢是否使用代理:

git config --global http.proxy 


取消代理:

git config --global --unset http.proxy

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章