windows 通过repo 拉取android 源码

首先安装git 和python 2.7 配置好环境变量


image.png

进入到 C:\Users\你的用户名\

使用git终端打开

mkdir ~/bin
curl https://raw.githubusercontent.com/esrlabs/git-repo/stable/repo > ~/bin/repo
curl https://raw.githubusercontent.com/esrlabs/git-repo/stable/repo.cmd > ~/bin/repo.cmd
chmod a+rx ~/bin/repo

新建一个源码仓库

mkdir ~/AOSP
cd ~/AOSP

repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-5.1.1_r9 --repo-url=https://github.com/esrlabs/git-repo.git 

repo sync -j4 或者 repo sync -c -j4
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容