首先安装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