开始Android源码分析学习~
转载请标明出处:http://blog.csdn.net/zhijunhong/article/details/51052597 谢谢!~
Ubuntu14.04系统下载Android源码,直接上步骤:
1.Curl的安装:
$ sudo apt-get install curl
2.Git的安装:
$ sudo apt-add-repository ppa:git-core/ppa // 这样可以获得最新版本的git
$ sudo apt-get update //更新数据源
$ sudo apt-get install git
3.Repo的安装:
$ mkdir ~/bin // 创建~/bin目录
$ PATH=~/bin:$PATH // 将~/bin:$PATH加入到PATH变量中
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo // 下载repo到~/bin/repo的目录
## 如果上述 URL 不可访问,可以用下面的:
## curl https://storage-googleapis.lug.ustc.edu.cn/git-repo-downloads/repo > ~/bin/