问题:
使用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 异步任务加载图片代码
  3. android解析xml文件 Android DOM解析XML之全球实时地震信息列表
  4. android 设备开发 让应用程序出现在模拟器启动列表中
  5. android 加载模式
  6. osg for android (一) 简单几何物体的加载与显示
  7. Android之TextView属性列表
  8. Android 异步加载图片分析
  9. Android获取软键盘输入内容

随机推荐

  1. 关于Android(安卓)设置监听的的四种方式
  2. Android(安卓)Camera预览
  3. Android开发指南(37) —— Data Backup
  4. 整理出15个Android很有用的代码片段
  5. setBackground和setBackgroundDrawable的
  6. [Android] 提高ORMLite插入大量数据效率
  7. Android的service相关讲解
  8. Android中使用log4j
  9. android 驱动文件权限设置
  10. Android(安卓)Orm框架(GreenDao)