android 源码下载DownloadError: android.googlesource.com: <urlopen error [Errno 110] Connection timed out
来源:互联网 发布:pano2vr.js 编辑:程序博客网 时间:2024/06/08 04:00
因为之前的虚拟机奔溃,再次下载时回报DownloadError: android.googlesource.com: <urlopen error [Errno 104] Connection reset by peer>错误,
DownloadError: android.googlesource.com: <urlopen error [Errno 110] Connection timed out>
经过官网查找原因,发现
Using authentication
By default, access to the Android source code is anonymous. To protect the servers against excessive usage, each IP address is associated with a quota
When sharing an IP address with other users (e.g. when accessing the source repositories from beyond a NAT firewall), the quotas can trigger even for regular usage patterns (e.g. if many users sync new clients from the same IP address within a short period).
In that case, it is possible to use authenticated access, which then uses a separate quota for each user, regardless of the IP address.
也就是说同一IP再次下载会失效,
解决方案如下:
1. 浏览器登录https://android.googlesource.com/new-password,并用gmail帐号(就是你初始化repo时填写的gmail邮箱)登录;
2. 点击网页上的“允许访问”,
进入后copy “Staying Authenticated”下边灰色部分的内容:
1 machine android.googlesource.com login git...............
2 machine android-review.googlesource.com login git...................
3.将copy的内容写进~/.netrc文件中,如果你的/home下没有这个文件的话,可以创建一个
4. repo init -u https://android.googlesource.com/a/platform/manifest (注意该URL中多了一个/a)
5. repo sync
现在就可以下载Android源码。
- 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
- 解决下载Android源码时遇到的问题 DownloadError: android.googlesource.com:
- 使用git bash下载Android源码Failed to connect to android.googlesource.com port 443: Timed out的问题解决方法
- 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.异常
- Android Studio Error:Connection timed out: connect.解决方案
- Android Studio Error:Connection timed out: connect.解决方案
- [goagent]urllib2.URLError: <urlopen error [Errno timed out] counld not connect to 'appeng ine.google
- 【Python】 URLError: <urlopen error timed out> 错误
- 下载android代码过程中,提示以下错误: error: Failed connect to android.googlesource.com:443;
- ecshop 添加自定义动态库项目详解
- VB語法
- 开博首篇
- Fabrice Bellard
- Fabrice Bellard
- android 源码下载DownloadError: android.googlesource.com: <urlopen error [Errno 110] Connection timed out
- linux上面python升级
- ArcEngine开发中关于获取IFeature对象Pfeature坐标的说明
- 自己写的代码
- 插入数据库之前将特殊字符转义
- 备份
- VIM使用图示
- 备份2
- 备份3