android 源码下载
来源:互联网 发布:java中交换两个数方法 编辑:程序博客网 时间:2024/05/29 02:52
一:获取谷歌认证;
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
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源码
- 下载构建android源码-下载源码
- Android源码下载
- Android源码下载
- android源码下载
- android源码下载
- git 下载 android 源码
- Android 源码下载
- Android 源码下载编译
- android源码下载
- android源码下载方法
- android git 下载源码
- 如何下载android源码
- android源码下载
- android源码下载
- android源码下载
- android 源码下载
- ubuntu android 源码下载
- LayoutInflater的inflate函数用法详解
- IOS:NSTimer
- Struts2中的路径问题
- mvn eclipse:eclipse -Dwtpversion=2.0 -DdownloadSources=true -DdownloadJavadocs=true -DjdkLevel=1.6
- linux定时器的使用----笛风读书笔记系列
- android 源码下载
- 输入三个字符串,按由小到大的顺序输出
- Robberies
- eclipse快捷键
- Linked List Cycle
- 查看SQL执行计划
- 分巧克力 - 湖北民族学院提供
- UVa 11728 Alternate Task (逆因子和)
- deep leaning toolbox学习使用1之NN