免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 13259 | 回复: 18

现在如何获取android源代码?需要代理吗 [复制链接]

论坛徽章:
0
发表于 2010-05-26 09:09 |显示全部楼层
如题。

我的步骤如下:
curl http://android.git.kernel.org/repo >~/bin/repo

~/bin/repo init -u git://android.git.kernel.org/platform/manifest.git || echo "faild"
android.git.kernel.org[0: 199.6.1.176]: errno=Connection timed out
android.git.kernel.org[0: 204.152.191.45]: errno=Connection timed out
android.git.kernel.org[0: 130.239.17.12]: errno=Connection timed out
android.git.kernel.org[0: 149.20.20.141]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)
faild

为什么网上其他人都用repo init –u git://android.git.kernel.org/platform/manifest.git来获取。repo在~/bin/目录下, 难道他们的PATH包含了这个目录?不然是运行不了的。


Thanks

论坛徽章:
0
发表于 2010-05-26 09:27 |显示全部楼层
break through the gfw

论坛徽章:
0
发表于 2010-05-26 09:28 |显示全部楼层
网上人家是这样的:
#curl http://android.git.kernel.org/repo >/bin/repo
# chmod a+x /bin/repo
#repo init -u git://android.git.kernel.org/platform/manifest.git

这是把repo脚本放在/bin目录下,然后设为可执行… 只是为了方便,在使用repo时不输入全路径…

你的放在~/bin/repo,运行$ ~/bin/repo init -u git://android.git.kernel.org/platform/manifest.git也是可以的,没多大差别… 没没把~/bin包含在PATH中,不能直接用repo命令,需要全路径或相对路径…


很显然你的是网络不好,换个网或用代理估计没问题…

评分

参与人数 1可用积分 +15 收起 理由
prolj + 15 不错

查看全部评分

论坛徽章:
0
发表于 2010-05-26 09:35 |显示全部楼层
非常感谢2位

break through the gfw
djstava 发表于 2010-05-26 09:27


请问gfw是啥意思?



我是用wifi上网的,但是我觉得速度还不错阿。

论坛徽章:
59
2015七夕节徽章
日期:2015-08-24 11:17:25ChinaUnix专家徽章
日期:2015-07-20 09:19:30每周论坛发贴之星
日期:2015-07-20 09:19:42ChinaUnix元老
日期:2015-07-20 11:04:38荣誉版主
日期:2015-07-20 11:05:19巳蛇
日期:2015-07-20 11:05:26CU十二周年纪念徽章
日期:2015-07-20 11:05:27IT运维版块每日发帖之星
日期:2015-07-20 11:05:34操作系统版块每日发帖之星
日期:2015-07-20 11:05:36程序设计版块每日发帖之星
日期:2015-07-20 11:05:40数据库技术版块每日发帖之星
日期:2015-07-20 11:05:432015年辞旧岁徽章
日期:2015-07-20 11:05:44
发表于 2010-05-26 09:45 |显示全部楼层
我下载了SDK2.0的源代码。

论坛徽章:
0
发表于 2010-05-26 11:26 |显示全部楼层
2.2源码还没出的吧……

论坛徽章:
0
发表于 2010-05-26 19:12 |显示全部楼层
只见了2.0的源代码

android-2.0的下载地址如下
http://dl.dropbox.com/u/3238411/android-2.0-eclair-src.zip

论坛徽章:
0
发表于 2010-05-26 19:28 |显示全部楼层
只见了2.0的源代码

android-2.0的下载地址如下
linux初学三月 发表于 2010-05-26 19:12



    2.1的源码已经有了哈…

论坛徽章:
0
发表于 2010-05-26 19:29 |显示全部楼层
况且dropbox.com不是被墙了么… 呵呵

论坛徽章:
0
发表于 2010-05-26 19:32 |显示全部楼层
2.1的源码已经有了哈…
Kallawa 发表于 2010-05-26 19:28



    把2.1的共享下吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP