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