首页 > 代码库 > 下载android 源码
下载android 源码
http://source.android.com/source/downloading.html
1.下载repo
官网:curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
目前我啥下载不了。
找了其他源,但如果repo下载不对,会提示“gpg: 无法检查签名:找不到公钥”
curl http://git-repo.googlecode.com/files/repo-1.13 > ~/bin/repo
sudo chmod a+x ~/bin/repo
2.初始化分支
下载所有分支信息,中途会要求配置邮箱和用户名
下载完成后可以去.repo/manifests目录下git branch -a查看
repo init -u https://android.googlesource.com/platform/manifest
切换分支
repo init -b android-4.4.2_r2
3.下载代码
repo sync -j4开四线程下
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。