安卓源码5.0.1下载及编译

repo要求最低版本为python3.6

安装python3.7

使用科大镜像源

参考csdn教程

首先下载 repo 工具

mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
## 如果上述 URL 不可访问,可以用下面的:
## curl -sSL  'https://gerrit-googlesource.proxy.ustclug.org/git-repo/+/master/repo?format=TEXT' |base64 -d > ~/bin/repo
chmod a+x ~/bin/repo

然后建立一个工作目录(我起名为source)

mkdir source
cd source

初始化仓库之前需要安装并登录git

sudo apt-get install git 
git config --global user.email "[email protected]" #你的git邮箱
git config --global user.name "tes

你可能感兴趣的:(linux)