Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-2.xml, reason:
http://blog.csdn.net/gyming/article/details/8168166/
最近接受的这个项目需要Android SDK Tools revision 22.6.2 or above.,所以必须得更新SDK,
然而在SDKmanager中更新android SDK 总是提示:
Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml
Fetched Add-ons List successfully
Fetching URL: http://dl-ssl.google.com/android/repository/repository-8.xml
Done loading packages.
Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml
Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: Unknown Host http://proxy.global.sonyericsson.net
Fetched Add-ons List successfully
Fetching URL: http://dl-ssl.google.com/android/repository/repository-8.xml
Failed to fetch URL http://dl-ssl.google.com/android/repository/repository-8.xml, reason: IO Unknown Host http://proxy.global.sonyericsson.net
Done loading packages.
在网上查了很多方法想 修改hosts文件、设置代理等不可行,最后只能通过有点麻烦的方法解决了
1.下载3个xml文件:
http://dl-ssl.google.com/Android/repository/addon.xml
http://dl-ssl.google.com/Android/repository/repository.xml
http://dl-ssl.google.com/Android/repository/repository-5.xml
2.根据xml文件中的内容获取下载zip包的连接如下:
==========================================================================
<!-- http://dl-ssl.google.com/Android/repository/addon.xml begin-->
<!-- ADD-ONS ....................... -->
http://dl-ssl.google.com/Android/repository/google_apis-3-r03.zip
http://dl-ssl.google.com/Android/repository/google_apis-4_r02.zip
http://dl-ssl.google.com/Android/repository/google_apis-5_r01.zip
http://dl-ssl.google.com/Android/repository/google_apis-6_r01.zip
http://dl-ssl.google.com/Android/repository/google_apis-7_r01.zip
http://dl-ssl.google.com/Android/repository/google_apis-8_r02.zip
http://dl-ssl.google.com/Android/repository/google_apis-9_r02.zip
http://dl-ssl.google.com/Android/repository/google_apis-10_r02.zip
http://dl-ssl.google.com/Android/repository/google_apis-11_r01.zip
http://dl-ssl.google.com/Android/repository/google_apis-12_r01.zip
http://dl-ssl.google.com/Android/repository/google_apis-13_r01.zip
http://dl-ssl.google.com/Android/repository/google_apis-14_r01.zip
<!-- GOOGLE TV ADDONS ............. -->
http://dl-ssl.google.com/Android/repository/google_tv-12_r02.zip
<!-- EXTRAS ....................... -->
http://dl-ssl.google.com/Android/repository/market_licensing-r01.zip
http://dl-ssl.google.com/Android/repository/usb_driver_r04-windows.zip
http://dl-ssl.google.com/Android/repository/market_billing_r01.zip
http://dl-ssl.google.com/Android/repository/webdriver_r01.zip
<!-- http://dl-ssl.google.com/Android/repository/addon.xml end-->
==========================================================================
==========================================================================
<!-- http://dl-ssl.google.com/Android/repository/repository.xml begin-->
<!-- PLATFORM-TOOL ........................ -->
https://dl-ssl.google.com/Android/repository/platform-tools_r09-windows.zip
<!-- TOOLS ........................ -->
https://dl-ssl.google.com/Android/repository/tools_r15-windows.zip
<!-- http://dl-ssl.google.com/Android/repository/repository.xml end-->
==========================================================================
==========================================================================
<!-- http://dl-ssl.google.com/Android/repository/repository-5.xml begin-->
<!-- PLATFORMS ........................ -->
https://dl-ssl.google.com/Android/repository/android-1.1_r1-windows.zip
https://dl-ssl.google.com/Android/repository/android-1.5_r04-windows.zip
https://dl-ssl.google.com/Android/repository/android-1.6_r03-windows.zip
https://dl-ssl.google.com/Android/repository/android-2.0_r01-windows.zip
https://dl-ssl.google.com/Android/repository/android-2.0.1_r01-windows.zip
https://dl-ssl.google.com/Android/repository/android-2.1_r03-linux.zip
https://dl-ssl.google.com/Android/repository/android-2.2_r03-linux.zip
https://dl-ssl.google.com/Android/repository/android-2.3.1_r02-linux.zip
https://dl-ssl.google.com/Android/repository/android-2.3.3_r02-linux.zip
https://dl-ssl.google.com/Android/repository/android-3.0_r02-linux.zip
https://dl-ssl.google.com/Android/repository/android-3.1_r03-linux.zip
https://dl-ssl.google.com/Android/repository/android-3.2_r01-linux.zip
https://dl-ssl.google.com/Android/repository/android-14_r01.zip
https://dl-ssl.google.com/Android/repository/android-18_r01.zip
https://dl-ssl.google.com/Android/repository/android-18_r01.zip
<!-- SYSTEM IMAGES ........................ -->
https://dl-ssl.google.com/Android/repository/sysimg_armv7a-14_r01.zip
<!-- SAMPLES ........................ -->
https://dl-ssl.google.com/Android/repository/samples-2.1_r01-linux.zip
https://dl-ssl.google.com/Android/repository/samples-2.2_r01-linux.zip
https://dl-ssl.google.com/Android/repository/samples-2.3_r01-linux.zip
https://dl-ssl.google.com/Android/repository/samples-2.3.3_r01-linux.zip
https://dl-ssl.google.com/Android/repository/samples-3.0_r01-linux.zip
https://dl-ssl.google.com/Android/repository/samples-3.1_r01-linux.zip
https://dl-ssl.google.com/Android/repository/samples-3.2_r01-linux.zip
https://dl-ssl.google.com/Android/repository/samples-14_r01.zip
<!-- PLATFORM-TOOLS ........................ -->
https://dl-ssl.google.com/Android/repository/platform-tools_r08-windows.zip
<!-- TOOLS ........................ -->
https://dl-ssl.google.com/Android/repository/tools_r14-windows.zip
<!-- DOCS ........................ -->
https://dl-ssl.google.com/Android/repository/docs-14_r01.zip
https://dl-ssl.google.com/Android/repository/docs-15_r01.zip
https://dl-ssl.google.com/Android/repository/docs-16_r01.zip
https://dl-ssl.google.com/Android/repository/docs-17_r01.zip
https://dl-ssl.google.com/Android/repository/docs-18_r01.zip
https://dl-ssl.google.com/Android/repository/docs-19_r01.zip
<!-- EXTRAS ........................ -->
https://dl-ssl.google.com/Android/repository/support_r10.zip
https://dl-ssl.google.com/Android/repository/support_r11.zip
https://dl-ssl.google.com/Android/repository/support_r12.zip
https://dl-ssl.google.com/Android/repository/support_r13.zip
<!-- http://dl-ssl.google.com/Android/repository/repository-5.xml end-->
3.下载完后,在<sdk>/temp/文件夹中放入需要安装版本的zip包
4.运行sdk manager.exe开始安装,这是安装将跳过下载部分直接安装
5.安装完成
使用该方法,记得一定设置android-sdk的环境变量 哦。。
参考设置android的环境变量 http://www.cnblogs.com/yuan1225/archive/2013/05/15/3079626.html
记得之前修改hosts文件可以的,但是这次却不行了
修改hosts文件。
(1)windows下打开C:\Windows\System32\drivers\etc,以管理员身份编辑hosts文件,在最后添加:
74.125.237.1 dl-ssl.google.com
(2)linux下使用命令sudo vim /etc/hosts编辑hosts文件,同样在文件最后添加
74.125.237.1 dl-ssl.google.com
然后重新运行sdk manager,就可以下载了。
设置代理:
参考文档
http://www.oschina.net/question/163910_30669
如果喜欢作者的文章,请关注"写代码的猿"订阅号以便第一时间获得最新内容。本文版权归作者所有,欢迎转载.
Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-2.xml, reason:的更多相关文章
- "Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list.xml,reason: Connection
"Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list.xml,reason: Conne ...
- Failed to fetch URl https://dl-ssl.google.com/android/repository/addo Android SDK更新以及ADT更新出现问题的解决办法
问题描述 使用SDK Manager更新时出现问题Failed to fetch URL https://dl-ssl.google.com/android/repository/repository ...
- Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.xml
解决方法来源:http://www.cnblogs.com/kaka-bing/archive/2012/10/31/2747490.html 问题描述: 使用Android SDK Manager检 ...
- Android SDK Manager检查更新时遇到Failed to fetch URL xxxxxxx reason: Connection to xxxxxx的错误的解决办法!
首先说明的是这个问题并不是每个人都存在,但是我和我的一个同学都有这种情况,所以我同学百度了一下,找出了解决办法. 问题描述: 使用Android SDK Manager检查在线更新,提示以下错误: & ...
- [转载]关于android SDK安装Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml出错
原文地址为:http://blog.csdn.net/springsky_/article/details/7442388 因为入行移动测试,所以很多测试环境的搭建.从中遇到了和这个GG同样的问题.怕 ...
- Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: Connectio (andriod sdk manager) http://dl-ssl.google.com/android上不去解决方案
Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml Fetched Add-ons List succes ...
- Failed to fetch URL http://dl-ssl.google.com/android/repository/repository.xml, reason:
Failed to fetch URL http://dl-ssl.google.com/android/repository/repository.xml, reason: Connection t ...
- Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: Connect
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: Connect ...
- 关于android SDK安装Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml出错
最近SDK出问题了,然后在google下载了一个android-sdk-windows.rar,然后点击SDK Manager,结果一直不能刷新API Level,然后就开始在网上找了好多 ...
随机推荐
- LruCache的使用及原理
采用LRU算法实现的话就是将最老的数据删掉.利用LRU缓存,我们能够提高系统的性能. 一,是它本身已经实现了按照访问顺序的存储,也就是说,最近读取的会放在最前面,最不常读取的会放在最后(当然,它也 ...
- prometheus alert rules文件格式化
1.下载go(version>1.9,否则promtool工具不好使) https://golang.org/doc/install?download=go1.10.2.linux-amd64. ...
- 学习了解 Exchanger - 实现生产者消费者模型
例子很简单 Exchanger可以理解为消息队列或者说是一个通信管道,从一边拿到消息,另外一边进行消费. 不过这个是同步实现的,消费者在exchange之前,生产者一直处于等待状态,而不是一直生产. ...
- 学习Vue.js之vue移动端框架到底哪家强
官网:https://cn.vuejs.org/. 转载:http://www.cnblogs.com/8899man/p/6514212.html Weex 2016年4月21日,阿里巴巴在Qcon ...
- 架构之微服务(etcd)
1. ETCD是什么 ETCD是用于共享配置和服务发现的分布式,一致性的KV存储系统.该项目目前最新稳定版本为2.3.0. 具体信息请参考[项目首页]和[Github].ETCD是CoreOS公司发起 ...
- 虚拟机配置Openstack常见问题汇总
之前配置了openstack,遇到一些问题,现在将问题全部汇总记录在这里. (1)问题:主机名字修改不了: 原因:没有进入root状态:或者没有正确打开文件,要打开的是/etc/hostname,结果 ...
- WEB自动化(Python+selenium)的API
在做Web自动化过程中,汇总了Python+selenium的API相关方法,给公司里的同事做了第二次培训,分享给大家 ...
- Fiddler抓包工具证书安装
转自:https://www.cnblogs.com/hushaojun/p/6385947.html Fiddler证书安装(查看HTTPS) 现在很多带有比较重要信息的接口都使用了安全性更高的HT ...
- Effective Java 第三版——42.lambda表达式优于匿名类
Tips <Effective Java, Third Edition>一书英文版已经出版,这本书的第二版想必很多人都读过,号称Java四大名著之一,不过第二版2009年出版,到现在已经将 ...
- PAT1011:World Cup Betting
1011. World Cup Betting (20) 时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Wit ...