windows 通过repo 拉取android 源码

2022-02-15  本文已影响0人  代瑶

首先安装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
上一篇 下一篇

猜你喜欢

热点阅读