【我的第一篇android博客】教育网中使用repo下载android源代码
来源:互联网 发布:林心如周杰事件知乎 编辑:程序博客网 时间:2024/05/02 06:44
Android源码下载教程请参照Justin WIKI-Build Android Platform
其中挂代理使用repo下载源码时,运行repo init -u git://android.git.kernel.org/platform/manifest.git,出现timeout错误,repo在教育网连不上源码网站。。于是从晚上折腾到现在,真是心力交瘁阿,BT的教育网。。
先说一下我的环境吧,ubuntu 10.04 desktop,已经找到可用的教育网代理,这个一搜就有很多。
网上给repo挂代理到方法有很多, 可是都试过了以后,发现没用。。崩溃
最后参照windows下用git bash下载源码的方法,自己摸索出的解决方法如下:
0.先参照教育网使用http proxy下载android源代码,下载corkscrew软件并进行相关配置。
1.进入repo安装文件夹,打开repo,修改其中REPO_URL='git://android.git.kernel.org/tools/repo.git' 为 REPO_URL='http://android.git.kernel.org/tools/repo.git'
2.同样在repo安装文件夹里,进入隐藏文件夹.repo/repo/.git/,打开config文件,修改其中url = git://android.git.kernel.org/tools/repo.git 为 url = http://android.git.kernel.org/tools/repo.git
3.进入terminal,运行 export http_proxy=proxyname:proxyport
4.运行 repo init -u http://android.git.kernel.org/platform/manifest.git,OK,init完成。
5.到这儿问题还没有结束,当接下来运行 repo sync时,发现又连不上服务器了。。只不过这次有经验,当inti完成后,会提示你在某文件夹下初始化完成,进入该文件夹中到.repo文件夹,找到manifest.xml,打开,照旧修改git://android.git.kernel.org/tools/repo.git 为 http://android.git.kernel.org/tools/repo.git。保存,再次运行 repo sync,终于开始下载源码了。。。
太晚了,实在太累了。。在这里鄙视一下半夜开那么大声音打dota的室友,无良阿。
先写到这里把,如果有什么问题再补充~
参考方法(网上的):
分享编译Android源码的全过程
Git和Repo扫盲——如何取得Android源代码
Android源码编译
- 【我的第一篇android博客】教育网中使用repo下载android源代码
- 教育网使用http proxy下载android源代码
- Android源代码下载过程中无法下载repo的解决方法
- 我的第一篇android博客
- repo使用代理下载android源代码
- 使用git和repo下载Android的源代码
- 使用repo下载android的源代码出错解决方法
- 可以下载Android 源代码的repo源文件
- 我的第一篇博客(附Android Studio的下载链接)
- android问题(纪念我的第一篇博客)
- android MediaPlayer理解_我的第一篇博客
- Android之路,我的第一篇博客
- 编译Android源码(1) ---- 使用repo下载源代码
- 第一篇Android博客
- Android---第一篇博客
- Windows git和repo下载Android源代码
- Windows git和repo下载Android源代码
- 我的第一篇博客(我的Android学习之旅)
- 微软,Google面试题 (7) —— 反转句子中单词的顺序
- iBatisNet出现的问题
- 微软,Google面试题 (8) —— 求1+2+...+n
- 程序员要避免的五种程序注释方式 【转自csdn】
- 微软,Google面试题 (9) —— 查找链表的倒数第K个节点
- 【我的第一篇android博客】教育网中使用repo下载android源代码
- 性能测试监控 -- jprofile 监控 weblogic
- 将Xml 文件转换为 视图
- 一个完整的extjs的GridPanel例子
- extjs分页
- GridPanel显示
- extjs分页2
- Stored procedure & Sql Injection
- 在 CentOS 5.0 中安装 RPMforge 安装源(翻译)