使用清华源下载repo下载Android源码

下载repo文件

curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo

配置repo文件的权限

chmod a+x repo

配置默认REPO_URL(可以添加到 ~/.bashrc 文件末尾)

export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/'

下载Android源码

repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest
repo sync

猜你喜欢

转载自www.cnblogs.com/forrest-lin/p/10604595.html