问题:
使用SDK Manager更新时出现问题Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-6.xml, reason: Connection to https://dl-ssl.google.com refusedFailed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to http://dl-ssl.google.com refusedFailed 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

解决方法:

打开SDK Manager下Tools->Options,选中“Force https://… sources to be fetched using http://…”,强制使用http协议。

上一步选取之后,有的用户可以更新出列表来。如果还是不能,继续下面的操作。
在地址栏里输入:C:\WINDOWS\system32\drivers\etc
修改其中的hosts文件,右击打开方式选择记事本。在里面把下面文字复制进去,内容如下(特别强调:是在原本的内容后面粘贴下面的内容,而不是覆盖):
#Google主页
203.208.46.146 www.google.com
#这行是为了方便打开Android开发官网
74.125.113.121 developer.android.com
#更新的内容从以下地址下载
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com

有的用户接着就会看到加载出列表了。如果没有变化,重新打开SDK Manager。就会发现问题解决了。
如果还是无法加载出列表,还是出现红色 failed to fetch ...等提示内容,建议只好过几天再试试!

更新ADT插件的时候则使用网址http://dl-ssl.google.com/android/eclipse,而不是https://dl-ssl.google.com/android/eclipse,这个在官方开发文档里也有介绍。

更多相关文章

  1. android朗读英文
  2. Android(安卓)Notification的使用
  3. Android(安卓)Studio编译中“png-cruncher_*”异常的解决方案
  4. Android(安卓)检测网络是否打开
  5. Android(安卓)学习笔记 Contacts (三)Contacts 查找,增加,更新,删除联
  6. Android学习札记29:对线程更新UI界面的一些理解(2)
  7. android调用系统程序
  8. android 删除文件,打开指定的文件类型
  9. Android(安卓)SDK下载和更新失败的解决方法

随机推荐

  1. android中tabhost的使用
  2. android点击系统通知Notification,进入指
  3. 简单android Service 创建与启动示例
  4. Android(安卓)ApiDemos示例解析(108):Vie
  5. Android设置角标提示
  6. 学习android网址
  7. Android(安卓)Bitmap 圆角
  8. Android(安卓)sdk 接入时遇到的错误解决
  9. 转:Android(安卓)listview 实现分页
  10. android slidingview