美文网首页
windows 通过repo 拉取android 源码

windows 通过repo 拉取android 源码

作者: 代瑶 | 来源:发表于2022-02-15 09:54 被阅读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

相关文章

网友评论

      本文标题:windows 通过repo 拉取android 源码

      本文链接:https://www.haomeiwen.com/subject/ydirlrtx.html