DownloadError: android.googlesource.com: <urlopen error [Errno 110] Connection timed out>
来源:互联网 发布:淘宝店铺金牌卖家 退货 编辑:程序博客网 时间:2024/06/05 04:15
http://www.haogongju.net/art/1428426
最近因为工作需要,需要完整的Android源码,于是在VMware上安装Ubuntu,按照http://source.android.com/source/downloading.html中说明下载源码,但是当使用命令repo syns的时候总是失败DownloadError: android.googlesource.com: <urlopen error [Errno 110] Connection timed out>
其实官网(http://source.android.com/source/downloading.html)有段说明,如果认真执行就可解决。
1, 先按官网的步骤一步步执行
2,当遇到上述问题后,用浏览器登录https://android.googlesource.com/new-password,并用gmail帐号登录;
3, 点击网页上的“允许访问”,得到类似的结果:
machine android.googlesource.com login git-<userName>.gmail.com password <password>
machine android-review.googlesource.com login git-<userName>.gmail.com password <password>
将上边的两行追加到~/.netrc文件结尾。(如果你的linux系统中从来没有建立过此文件,就在home目录下建立.netrc文件,将上面的信息加到新建的文件中去),
4,下载地址的URI更改为https://android.googlesource.com/a/platform/manifest(中间加上了“/a”)。
5,然后执行repo sync就可以正常下载了
因为访问基本是匿名的,为了防止连接过多,对同一IP地址的连接数做了一定的限制。用gmail帐号进行认证。
在公司网络内或者用虚拟机下载的话,会经常遇到这问题。
- android 源码下载DownloadError: android.googlesource.com: <urlopen error [Errno 110] Connection timed out
- DownloadError: android.googlesource.com: <urlopen error [Errno 110] Connection timed out>
- DownloadError: android.googlesource.com: <urlopen error [Errno 111] Connection refused>
- android 源码下载错误: [Errno 110] Connection timed out
- [goagent]urllib2.URLError: <urlopen error [Errno timed out] counld not connect to 'appeng ine.google
- Android Studio Error:Connection timed out: connect.
- 【Python】 URLError: <urlopen error timed out> 错误
- Error:Connection timed out: connect
- Error:Connection timed out: connect.
- Error:Connection timed out:connect.
- 解决下载Android源码时遇到的问题 DownloadError: android.googlesource.com:
- Android Studio Error:Connection timed out: connect.解决方案
- Android Studio 出现Error:Connection timed out: connect.解决方案
- Android Studio Error:Connection timed out: connect.解决方案
- 已解决:Android Studio Error:Connection timed out: connect
- Android Studio Error:Connection timed out: connect.解决方案
- Android Studio Error:Connection timed out: connect.异常
- Android Studio Error:Connection timed out: connect.解决方案
- discuz 通过ajax动态获得的javascript不执行问题
- [经验之谈]C/C++的一个内存分配记录模块
- 嵌套iframe下父子页面之间的通信(跨域及同域的分析)
- Android系统Recovery工作原理之使用update.zip升级过程分析(七)---Recovery服务的核心install_package函数
- Eclipse+python开发环境配置
- DownloadError: android.googlesource.com: <urlopen error [Errno 110] Connection timed out>
- Android系统Recovery工作原理之使用update.zip升级过程分析(八)---解析并执行升级脚本updater-script
- 谷歌百度以图搜图 "感知哈希算法" C#简单实现
- ASIHttpRequest所需要的FrameWork
- Android系统Recovery工作原理之使用update.zip升级过程分析(九)---updater-script脚本语法简介以及执行流程
- java中main()方法详解
- 跨域表单提交状态的变相判断代码
- JavaScript 调用对象 作用域
- const 限定符