您的位置:首页 > 其它

环境搭建

2015-12-28 10:43 127 查看
Ubuntu download : http://www.ubuntu.org.cn/download

Android source 国内镜像下载方法:https://mirrors.tuna.tsinghua.edu.cn/help/#AOSP


过程摘录

(参考 https://lug.ustc.edu.cn/wiki/mirrors/help/aosp 编写)

下载 repo 工具:
mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo


建立工作目录:
mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY


初始化仓库:
repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest # 或 repo init -u git://aosp.tuna.tsinghua.edu.cn/aosp/platform/manifest

## 如果提示无法连接到 gerrit.googlesource.com,可以编辑 ~/bin/repo,把 REPO_URL 一行替换成下面的:
REPO_URL = 'https://gerrit-google.tuna.tsinghua.edu.cn/git-repo'


如果需要某个特定的 Android 版本(列表):
repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-4.0.1_r1


同步源码树(以后只需执行这条命令来同步):
repo sync
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: