window7下配置下载android源码环境,安装Repo

1.安装git(版本控制工具)

下载git:https://git-scm.com/download/win

双击exe文件,按提示一步一步地安装,然后将安装后的文件的cmd文件夹配置到环境变量中。

例如我安装后的cmd文件夹的路径:



将git添加到环境变量中如D:\software\git\Git\cmd


将MinGW添加到环境变量中,如D:\software\git\Git\bin

2.安装pyton(pyton编辑工具)

下载pyton:https://www.python.org/downloads/(版本选择2.7+,否则会报异常ypeError: startswith first arg must be bytes or a tuple of bytes, not str)

环境配置:

安装后的目录


将该路径配置到环境变量path中




3.下载Repo(基于git的仓库管理工具)

3.1.下载:https://github.com/esrlabs/git-repo

3.2.Repo的配置

3.2.1.cmd启动命令控制台

3.2.2.1执行命令

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




在电脑路径c:\zhhl\bin中可以看到所生产的文件



3.2.2.2.以上为repo的下载及配置,下面为repo的安装




4.安装source insight(windows上android源码阅读器)

下载:http://www.sourceinsight.com/eval.html


参考资料:http://www.jianshu.com/p/b3580904d298

    https://github.com/esrlabs/git-repo

http://source.android.com/source/using-repo.html

  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值