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,然后就开始在网上找了好多 ...
随机推荐
- dijkstra算法:寻找到全图各点的最短路径
dijkstra算法介绍:即迪杰斯特拉算法,是从一个顶点到其余各顶点的最短路径算法,解决的是有向图中最短路径问题.迪杰斯特拉算法主要特点是以起始点为中心向外层层扩展,直到扩展到终点为止,是一种广度优先 ...
- 用calc()绘制手机图案解锁的九宫格样式
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...
- JWT实现用户权限认证
网上的java基础教程曾教会我们,将用户登录信息存在session(服务器端)中,需要验证的时候拿出来作对比以达到身份 验证的效果.但这种方式暴露的问题也是可想而知的: 1.Seesion:每次认证用 ...
- Python的编码风格
1.采用四个空格作为缩进 2.一行代码不要超多79个字符 3.使用空行分割类,函数,以及大块代码 4.注释独占一行 5.使用文档字符串 6.操作符的两侧,逗号后面都要加空格(但是括号的里侧是不加的) ...
- SOFA 源码分析 —— 过滤器设计
前言 通常 Web 服务器在处理请求时,都会使用过滤器模式,无论是 Tomcat ,还是 Netty,过滤器的好处是能够将处理的流程进行分离和解耦,比如一个 Http 请求进入服务器,可能需要解析 h ...
- git常用笔记整理
Git 什么是Git 初始化 guthub创建sshKey 下载 上传 更新 创建切换分支 删除分支 合并分支 查看命令历史|提交历史 撤回 设置用户名和密码 查看配置信息 强制pull 强制push ...
- 震惊!外部类可以访问内部类private变量
在讲Singleton时我举例时用过这样一段代码: public class SingletonDemo { private static class SingletonHolder{ private ...
- HTML DOM对象的属性和方法
HTML DOM对象的属性和方法 HTML DOM 对象有几种类型: 1.Document 类型 在浏览器中,Document 对象表示整个 HTML 文档. 1.1属性 引用文档的子节点 docum ...
- String的indexOf()用于获取字符串中某个子字符串的位置
indexOf作用:用于检索一个字符串在另一个字符串中的位置. indexOf的几个重载方法如下: int indexOf(String str) 意思为在字符串中检索str第一次出现的位置,如果找 ...
- Java NIO Channel通道
原文链接:http://tutorials.jenkov.com/java-nio/channels.html Java NIO Channel通道和流非常相似,主要有以下几点区别: 通道可以读也可以 ...