repo

				版权声明:本文为博主原创文章,未经博主允许不得转载。					https://blog.youkuaiyun.com/qq_33160790/article/details/78193314				</div>
							<link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/template/css/ck_htmledit_views-f57960eb32.css">
    								            <div id="content_views" class="markdown_views prism-github-gist">
						<!-- flowchart 箭头图标 勿删 -->
						<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"><path stroke-linecap="round" d="M5,0 0,2.5 5,5z" id="raphael-marker-block" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path></svg>
						<p>安装步骤:</p>

1、根目录下创建.bin文件夹

mkdir ~/.bin

2、配置为临时环境变量(也可配置为永久的)

PATH=~/.bin:$PATH

3、下载repo

git clone https://gerrit-googlesource.lug.ustc.edu.cn/git-repo
或者可以使用清华源下载
curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo
chmod +x repo

4、将git-repo中的repo文件复制到 1 创建的.bin目录中

cd git-repo
cp repo ~/.bin/

5、修改权限

chmod a+x ~/.bin/repo

6、创建同步源码的工作目录

mkdir android_source

7、在工作目录中创建.repo目录

cd android_source
mkdir .repo

8、将下载的git-repo拷贝到.repo下,并改名为 repo

9、可以重新初始化了

repo init -u xxxxxxxxx -b xxxx

10、开始同步

repo sync

        </div>
					<link href="https://csdnimg.cn/release/phoenix/mdeditor/markdown_views-258a4616f7.css" rel="stylesheet">
                  </div>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值