android 源码下载
2014-02-25 19:53
323 查看
一:获取谷歌认证;
1,登陆https://www.googlesource.com 用你的google账户登陆选择(右上角)创建new password;
2,sudo vim ~.netrc
没有 .netrc 创建;
在刚才网站获取来的机器码下面例子是我的:
machine android.googlesource.com login xxxxxxxxxxx.qq.com password 1/qAi-e4uB8faiAvGihebrYNSQCQbLrumQYFDbepc_rXM
machine android-review.googlesource.com login xxxxxxxxxx.qq.com password 1/qAi-e4uB8faiAvGihebrYNSQCQbLrumQYFDbepc_rXM
添加到 .netrc后面
二;修改本地掩码;
sudo vim /etc/hosts
在前面添加
74.125.31.82 www.googlesource.com
74.125.31.82 android.googlesource.com
203.208.46.172 cache.pack.google.com
59.24.3.173cache.pack.google.com
三,执行repo和获取源码
curl http://git-repo.googlecode.com/files/repo-1.13 > ~/bin/repo
chmod a+x ~/bin/repo
PATH=~/bin:$PATH
mkdir Android
cd Android
repo init -u git://codeaurora.org/platform/manifest.git
repo sync
repo init -u git://codeaurora.org/platform/manifest.git -b android-4.0.1_r1(你的版本)
repo sync(可选)
四,错误解决:
1,出现:
fatal: '../platform/abi/cpp.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
error: Cannot fetch platform/abi/cpp
解决:在~Android/.repo目录下的找到fetch属性
改成
fetch="git://Android.git.linaro.org/"
重新repo sync
1,登陆https://www.googlesource.com 用你的google账户登陆选择(右上角)创建new password;
2,sudo vim ~.netrc
没有 .netrc 创建;
在刚才网站获取来的机器码下面例子是我的:
machine android.googlesource.com login xxxxxxxxxxx.qq.com password 1/qAi-e4uB8faiAvGihebrYNSQCQbLrumQYFDbepc_rXM
machine android-review.googlesource.com login xxxxxxxxxx.qq.com password 1/qAi-e4uB8faiAvGihebrYNSQCQbLrumQYFDbepc_rXM
添加到 .netrc后面
二;修改本地掩码;
sudo vim /etc/hosts
在前面添加
74.125.31.82 www.googlesource.com
74.125.31.82 android.googlesource.com
203.208.46.172 cache.pack.google.com
59.24.3.173cache.pack.google.com
三,执行repo和获取源码
curl http://git-repo.googlecode.com/files/repo-1.13 > ~/bin/repo
chmod a+x ~/bin/repo
PATH=~/bin:$PATH
mkdir Android
cd Android
repo init -u git://codeaurora.org/platform/manifest.git
repo sync
repo init -u git://codeaurora.org/platform/manifest.git -b android-4.0.1_r1(你的版本)
repo sync(可选)
四,错误解决:
1,出现:
fatal: '../platform/abi/cpp.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
error: Cannot fetch platform/abi/cpp
解决:在~Android/.repo目录下的找到fetch属性
改成
fetch="git://Android.git.linaro.org/"
重新repo sync
相关文章推荐
- android 代码实现控件之间的间距
- android FragmentPagerAdapter的“标准”配置
- Android"解决"onTouch和onClick的冲突问题
- 从源码安装Mysql/Percona 5.5
- 解決Linux下Android开发真机调试设备不被识别问题
- Scrapy的架构介绍
- [Android]在代码里运行另一个程序的方法
- 发布一个自己做的jsp博客系统
- [软件咨询]WPS2012正式版已发布 金山Office移动版4.0发布
- Android笔记-Linux Kernel Ftrace (Function Trace)解析
- 提供个 全免杀海洋2006asp木马 下载
- 高手写的Tracer-Flash代码调试类代码下载
- Vista 防火墙 Vista Firewall Control v1.0.11 下载
- 国外Lightbox v2.03.3 最新版 下载
- 火影漫画下载助手 下载
- USBkill U盘防火墙 v3.0 下载
- 腾讯 Tencent Traveler v3.4 下载
- 查杀软件 360安全卫士 v3.2.1.1001 下载
- Kaspersky 6.0.2.666 MP2 nct Release+汉化补丁 下载
- Symantec Norton Ghost v12.0 Retail ISO 多国语言版 下载