使用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
方法
#Google主页
203.208.46.146 www.google.com
#这行是为了方便打开Android开发官网 现在好像不VPN也可以打开
74.125.113.121 developer.android.com
#更新的内容从以下地址下载
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com
如果出现修改失败,可以找到位于Windows主文件夹下的notepad.exe文件(记事本程序),然后右键选择“以管理员身份运行”,此时启动的记事本程序将会临时获得最高权限。接着通过文件菜单--打开,找到hosts文件进行必要的修改(或者直接拖动hosts到打开的notepad框内),完成后直接保存,在这过程中不会再弹出拒绝访问的警告提示。