一、搭建环境
liunx系统:Ubuntu20.04
Android系统:12
1.安装 Repo
下载Repo前先安装 curl 库
sudo apt-get install curl
下载好 curl 库后,设置清华源下载 Repo ,然后给repo文件添加可执行权限
Ubuntu20.04无法使用apt安装repo,我们可以使用下面这种方法:
1,创建repo存放目录bin,并配置环境变量:
mkdir ~/bin
PATH=~/bin:$PATH
2,下载repo启动程序
curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo > ~/bin/repo
chmod a+x ~/bin/repo
设置 repo 镜像源自动更新
export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/'
安装Python,适用于 Python 3
sudo apt i