Android源码下载方法
来源:互联网 发布:北京java语言培训 编辑:程序博客网 时间:2024/04/29 03:35
1、在下载源码之前需要安装如下软件包:
sudo apt-get install git-core
sudo apt-get install gnupg
sudo apt-get install sun-java6-jdk
sudo apt-get install flex
sudo apt-get install bison
sudo apt-get install gperf
sudo apt-get install libsdl-dev
sudo apt-get install libesd0-dev
sudo apt-get install build-essential
sudo apt-get install zip
sudo apt-get install curl
sudo apt-get install libncurses5-dev
sudo apt-get install zlib1g-dev
2、登陆source.android.com,然后进入Source——》Downloading the Source见下载步骤。
3、解决repo init -u https://android.googlesource.com/plat-form/manifest出现的报错:IOError: .repo/manifests/.git/HEAD'
$ touch ~/.gitconfig
$ rm -rf .rep
4、解决repo sync无法同步的报错:
A. 浏览器登录https://android.googlesource.com/new-password,并用gmail帐号登录;
B. 点击网页上的“允许访问”,得到类似:
machine android.googlesource.com login git-<userName>.gmail.com password <password>
machine android-review.googlesource.com login git-<userName>.gmail.com password <passw
的信息。
C. 把上面那段信息(<userName>和<password>用自己得到的真实信息)追加到~/.netrc文件结尾;
D. 下载地址的URI更改为https://android.googlesource.com/a/platform/manifest(中间加上了“/a”)。
然后按照官网描述的正常步骤操作,即可下Android源码。
- android源码下载方法
- Android源码下载方法
- 下载android源码方法
- android源码下载方法
- android 源码 下载 方法
- Android源码下载方法
- 下载Android Sdk源码方法
- Android源码下载方法详解
- Android源码下载方法详解
- 最新下载 android 源码方法
- Android源码下载方法详解
- Android源码下载方法详解
- android 4.1源码下载方法
- android 4.1源码下载方法
- Android源码下载方法详解
- Android源码下载方法详解
- Android源码下载方法详解 .
- Android源码下载方法详解
- 让MFC对话框不响应标题栏双击
- 软件工程师的职业发展(转载)
- 单线程运行AsyncTask后台的任务
- 2012—07—13
- ubuntu双网卡绑定一个IP
- Android源码下载方法
- 设计模式一:策略模式(Strategy pattern)
- GridView宫格视图实践
- 如何使/etc/profile中修改的配置立刻生效?
- 二叉查找树的操作(插入、删除、查找)
- struts 漏洞合集
- 记一次在西部数码上买域名的悲催经历
- 研究生与大学生的区别总结
- c#连接oracle在web.config中的连接数据库语句