Fetching https://dl-ssl.google.com/android/repository/addons_list-1.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to https://dl-ssl.google.com refused
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-6.xml

解决办法:

74.125.237.1 dl-ssl.google.com

windows系统中hosts文件的位置为:C:\Windows\System32\drivers\etc ,找到该文件并用记事本打开,在最后面添加上面一句话,保存之后关闭,重启Eclipse打开Android SDK Manager,ok!

android SDK Manager更新不了,出现错误提示:"Failed to fetch URL..."!

可以用以下办法解决:

使用SDK Manager更新时出现问题 Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-6.xml, reason: Connection to https://dl-ssl.google.com refused Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to http://dl-ssl.google.com refused Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: hostname in certificate didn't match: <dl-ssl.google.com> != <www.google.com> 更新ADT时无法解析https://dl-ssl.google.com/android/eclipse

由于某些众所周知又无法理解的原因,我们大陆使用Google的服务会出现种种问题,譬如Android开发也会出现阻碍。不过首先要说明的是一般情况下使用SDK Manager更新或者更新Eclipse的ADT插件是没有问题的,我以前也能正常更新,但是昨天不知道节点抽什么风,压根无法连接服务器,出现了上边的种种问题,下面说一下如果网络抽风的话应该如何解决问题。 一种方法是使用http协议而不是https协议,因为https协议进行了加密处理,大陆因为无法审查,直接封死,而http协议则进行过滤处理,如果不访问乱七八糟的东西,更新个SDK还是没问题的。

解决办法       (1)ADT更新

更新ADT插件的时候则使用网址http://dl-ssl.google.com/android/eclipse,而不是https://dl-ssl.google.com/android/eclipse,这个在官方开发文档里也有介绍。 但是昨天的情况就是使用http协议也无法访问。

对于ADT还是建议手动下载

(2)sdk更新             1》在SDK Manager下Tools->Options打开了SDK Manager的Settings,选中“Force https://… sources to be fetched using http://…”,强制使用http协议。             2》然后改hosts文件。Windows在C:\WINDOWS\system32\drivers\etc目录下,Linux用户打开/etc/hosts文件。             打开文件后添加以下内容。
#Google主页 203.208.46.146 www.google.com #这行是为了方便打开Android开发官网 现在好像不FQ也可以打开 74.125.113.121 developer.android.com #更新的内容从以下地址下载 203.208.46.146 dl.google.com 203.208.46.146 dl-ssl.google.com 添加以上的网址,就可以正常的进行更新了。 或者也可以什么都不做,过上一两天可能会恢复正常。

Eclipse输出错误reason: Connection to https://dl-ssl.google.com refused
估计这又是伟大GFW的功劳,我们只需要配置一下hosts文件,在文件的末尾添加下面一句:
74.125.237.1 dl-ssl.google.com


windows系统中hosts文件的位置为:C:\Windows\System32\drivers\etc ,找到该文件并已文本形式打开,添加上面一句话,保存之后关闭,重启Eclipse打开Android SDK Manager,ok!

把如下的内容复制保存为hosts,然后替换掉 C:\Windows\System32\drivers\etc\目录下的 hosts,就可以方便的使用google.com啦

203.208.46.1   plus.google.com
 
203.208.46.1   accounts.google.com
 
203.208.46.1   picasaweb.google.com
 
203.208.46.1   lh1.ggpht.com
 
203.208.46.1   lh2.ggpht.com
 
203.208.46.1   lh3.ggpht.com
 
203.208.46.1   lh4.ggpht.com
 
203.208.46.1   lh5.ggpht.com
 
203.208.46.1   lh6.ggpht.com
 
203.208.46.1   lh6.googleusercontent.com
 
203.208.46.1   lh5.googleusercontent.com
 
203.208.46.1   lh4.googleusercontent.com
 
203.208.46.1   lh3.googleusercontent.com
 
203.208.46.1   lh2.googleusercontent.com
 
203.208.46.1   lh1.googleusercontent.com
 
203.208.46.1   talkgadget.google.com
 
203.208.46.1   profiles.google.com
 
203.208.46.1   webcache.googleusercontent.com
 
203.208.46.1   sites.google.com
 
203.208.46.1   mail.google.com
 
203.208.46.1   www.google.com.hk
 
203.208.46.1   www.google.com
 
203.208.46.1   news.google.com
 
203.208.46.1   code.google.com
 
203.208.46.1   docs.google.com
 
203.208.46.1   services.google.com
 
203.208.46.1   clients4.google.com
 
203.208.46.1   clients2.google.com
 
203.208.46.1   chrome.google.com
 
203.208.46.1   tools.google.com
 
203.208.46.1   sites.google.com
 
203.208.46.1   accounts.google.com
 
209.85.229.18  reader.google.com
--------------------------------------------------------
 
#Google+ Hosts IP
 
74.125.237.1 plus.google.com
 
74.125.237.1 plus.google.com.hk
 
74.125.237.1 talkgadget.google.com
 
74.125.237.1 picasaweb.google.com
 
74.125.237.1 lh1.ggpht.com
 
74.125.237.1 lh2.ggpht.com
 
74.125.237.1 lh3.ggpht.com
 
74.125.237.1 lh4.ggpht.com
 
74.125.237.1 lh5.ggpht.com
 
74.125.237.1 lh6.ggpht.com
 
74.125.237.1 lh6.googleusercontent.com
 
74.125.237.1 lh5.googleusercontent.com
 
74.125.237.1 lh4.googleusercontent.com
 
74.125.237.1 lh3.googleusercontent.com
 
74.125.237.1 lh2.googleusercontent.com
 
74.125.237.1 lh1.googleusercontent.com
 
##Chrome 网上应用店
 
74.125.237.1 chrome.google.com
 
74.125.237.1 clients0.google.com
 
74.125.237.1 clients1.google.com
 
74.125.237.1 clients2.google.com
 
74.125.237.1 clients3.google.com
 
74.125.237.1 clients4.google.com
 
74.125.237.1 www.googleusercontent.com
 
74.125.237.1 lh0.googleusercontent.com
 
74.125.237.1 lh1.googleusercontent.com
 
74.125.237.1 lh2.googleusercontent.com
 
74.125.237.1 lh3.googleusercontent.com
 
74.125.237.1 lh4.googleusercontent.com
 
74.125.237.1 lh5.googleusercontent.com
 
74.125.237.1 lh6.googleusercontent.com
 
74.125.237.1 clients1.googleusercontent.com
 
74.125.237.1 clients2.googleusercontent.com
 
##网页快照
 
68.68.107.69 webcache.googleusercontent.com
 
##Google SSL
 
74.125.237.1 encrypted.google.com
 
74.125.237.1 encrypted.google.com.hk
 
##Google Docs
 
74.125.237.1 docs.google.com
 
74.125.237.1 docs0.google.com
 
74.125.237.1 docs1.google.com
 
74.125.237.1 docs2.google.com
 
74.125.237.1 docs3.google.com
 
74.125.237.1 spreadsheets.google.com
 
74.125.237.1 spreadsheets0.google.com
 
74.125.237.1 spreadsheets1.google.com
 
74.125.237.1 spreadsheets2.google.com
 
74.125.237.1 spreadsheets3.google.com
 
#Gmail
 
74.125.237.1 mail.google.com
 
74.125.237.1 chatenabled.mail.google.com        #Gmail中Gtalk聊天服务
 
##Google 搜索
 
74.125.237.1 www.google.com
 
##Google preview
 
74.125.237.1 www.googlepreview.com
 
##Google 翻译
 
74.125.237.1 translate.google.com
 
74.125.237.1 translate.googleapis.com
 
##Google 搜索建议(IE9)
 
74.125.237.1 clients5.google.com
 
##Google code
 
74.125.237.1 code.google.com
 
##Picasa 网络相册
 
74.125.237.1 picasaweb.google.com
 
74.125.237.1 lh0.ggpht.com
 
74.125.237.1 lh1.ggpht.com
 
74.125.237.1 lh2.ggpht.com
 
74.125.237.1 lh3.ggpht.com
 
74.125.237.1 lh4.ggpht.com
 
74.125.237.1 lh5.ggpht.com
 
74.125.237.1 lh6.ggpht.com
 
74.125.237.1 lh7.ggpht.com
 
74.125.237.1 lh8.ggpht.com
 
74.125.237.1 lh8.ggpht.com
 
74.125.237.1 lh9.ggpht.com
 
74.125.237.1 lh6.google.com
 
##Google 个人资料
 
74.125.237.1 profiles.google.com
 
74.125.237.1 browsersync.google.com
 
##Google+
 
74.125.237.1 talkgadget.google.com
##Google+中的聊天服务
 
74.125.237.1 ssl.gstatic.com
 
74.125.237.1 images-pos-opensocial.googleusercontent.com
 
74.125.237.1 images1-focus-opensocial.googleusercontent.com
 
74.125.237.1 images2-focus-opensocial.googleusercontent.com
 
74.125.237.1 images3-focus-opensocial.googleusercontent.com
 
74.125.237.1 images4-focus-opensocial.googleusercontent.com
 
74.125.237.1 images5-focus-opensocial.googleusercontent.com
 
74.125.237.1 images6-focus-opensocial.googleusercontent.com
 
74.125.237.1 plus.google.com
 
##Download 下载
 
74.125.237.1 dl.google.com
 
74.125.237.1 dl-ssl.google.com
 
##Groups
 
74.125.237.1 groups.google.com
 
##Google URL Shortener
 
74.125.237.1 goo.gl
 
##Google app engine
 
74.125.237.1 appengine.google.com

Android SDK Manager无法更新的解决办法的更多相关文章

  1. 关于Android SDK Manager无法更新的解决办法

    网上其实也提供了很多的解决方法,但是很多方法下载已经失效了,这里我提供一个解决方法: 1.打开SDK Manager,点击Tools-Options... 2.做如下修改: (这张图片是参考其他网站的 ...

  2. Android SDK Manager无法更新的解决

    只需要配置一下hosts文件,在文件的末尾添加下面一句: 74.125.237.1 dl-ssl.google.com windows系统中hosts文件的位置为:C:\Windows\System3 ...

  3. android sdk manager 无法更新,解决连不上dl.google.com的问题

    感谢博主的帮助,入口在这:https://www.jianshu.com/p/8fb367a51b9f?utm_campaign=haruki&utm_content=note&utm ...

  4. Android SDK Manager 闪退的解决办法

    (一)方案一 原理:  SDK Manager.exe 通过调用 android-sdk-windows\tools\lib\find_java.bat 确认  java.exe 的路径 启用 cmd ...

  5. Android SDK Manager无法更新的解决[ 转]

    将下列内容行添加到hosts文件中: 74.125.237.1 dl-ssl.google.com 1.Windows C:\WINDOWS\system32\drivers\etc\Hosts 2. ...

  6. Ubuntu中Android SDK Manager无法更新解决办法

    Ubuntu中Android SDK Manager无法更新解决办法http://hi.baidu.com/petercao2008/item/d7a64441f04668e81e19bc1a

  7. Android Studio 完美解决 “Android SDK Manager 无法更新“、 ”connection error” 的问题

    一.Android SDK Manager 无法更新 1. 打开SDK Mannger, 并选中启动单独的SDK Mannger.

  8. windows中android SDK manager安装更新sdk很慢,或者出现Done loading packages后不动甚至没有任何可用包

    出现问题: 1.windows中android SDK manager安装更新sdk很慢,或者出现Done loading packages后不动甚至没有任何可用包 2.Failed to fetch ...

  9. Android SDK Manager 无法更新问题(转载)

    先看看如何加快更新速度,再说如何更新. 首先更新host文件,如图,打开目录 C:\Windows\System32\drivers\etc,在目录下有hosts文件 打开方式选用“记事本”打开 将一 ...

随机推荐

  1. Comet、SSE、Web Socket

    来自<javascript高级程序设计 第三版:作者Nicholas C. Zakas>的学习笔记(十一) Comet Comet是一种更加高级的Ajax技术("服务器推送&qu ...

  2. spoj 1437

    自己暴了一下不过     转一个 bfs... #include <cstdio> #include <vector> #include <queue> #incl ...

  3. 如何定位Release 版本中程序崩溃的位置 ---利用map文件 拦截windows崩溃函数

    1       案例描述 作为Windows程序员,平时最担心见到的事情可能就是程序发生了崩溃(异常),这时Windows会提示该程序执行了非法操作,即将关闭.请与您的供应商联系.呵呵,这句微软的“名 ...

  4. EL表达式对数组、集合操作

    el表达式是通过${key}的方式获取对象中的值.在el表达式中有如下几个隐含的对象,pageScope,requestSope,sessionScope,applicationScope,如果要取$ ...

  5. codeforces #309 div1 A

    先说我的解法吧 首先设f(i,j)表示选了前i个球且j种颜色都已经选完了的方案数 这显然是可以随便转移的 #include<cstdio> #include<cstring> ...

  6. PHP基础语法3

    文件系统 判断文件是否存在 如果只是判断文件存在,使用file_exists就行,file_exists不仅可以判断文件是否存在,同时也可以判断目录是否存在,从函数名可以看出, is_file是确切的 ...

  7. [topcoder]AvoidRoads

    二维动态规划.和某一道leetcode的题目差不多.就是多了blocks的数组或集合. 本次解题的心得有:1.根据题意使用集合表示阻碍:2.使用字符串的形式表示整数的pair,简洁明了:3.p1到p2 ...

  8. 摄像头(3)调用系统拍照activity来拍照

    import android.app.Activity; import android.content.Intent; import android.content.pm.PackageManager ...

  9. Android 内存管理分析(四)

    尊重原创作者,转载请注明出处: http://blog.csdn.net/gemmem/article/details/8920039 最近在网上看了不少Android内存管理方面的博文,但是文章大多 ...

  10. 函数page_align

    /************************************************************//** Gets the start of a page. @return ...