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)

找各种原因,可能是局域网ISP将Git的端口9418给封了,因为http://android.git.kernel.org是可以访问的。后来搜了一下知道很多git服务器同时提供端口80的下载。

解决方法如下:

1.将命令行中的git://android.git.kernel.org换成http://android.git.kernel.org,

2.修改文件repo将里面的

REPO_URL='git://android.git.kernel.org/tools/repo.git' 改成

REPO_URL='http://android.git.kernel.org/tools/repo.git'

3. 修改文件.repo/manifests/default.xml将其中的 fetch="git://android.git.kernel.org/" 改成

fetch="http://android.git.kernel.org/"

这样就可以下载同步Android的源代码了

normal:

[zhoudy@zdyhost linux]$ git clone git://android.git.kernel.org/kernel/common.git
Cloning into common...
remote: Counting objects: 1823867, done.
remote: Compressing objects: 100% (284389/284389), done.

更多相关文章

  1. android屏幕旋转在framework中的修改。
  2. 在Eclipse 中关联android sdk 源代码
  3. android 修改系统显示u盘的名称
  4. 修改ListView 分割线Seperator line
  5. 【Android(安卓)Studio】setSupportActionBar(android.support.v
  6. 如何修改android开机启动默认横竖屏
  7. Android工具包
  8. adb连接不上模拟器的问题
  9. Android利用Ksoap2连接webservice 源码

随机推荐

  1. Android的理解
  2. android安全问题(五) 抢先拦截短信 - 结果
  3. android生命周期的例子
  4. Android日历只显示年月,只显示年
  5. Android(安卓)从枚举到注解最佳实践
  6. Android用户界面设计
  7. android ndk 入门 - 一个简单的ndk工程
  8. The "Android" command is deprecated.
  9. Android 抽屉式
  10. 2013.09.09——— android 判断存储卡是