部分转自:http://jingyan.baidu.com/article/148a192196209d4d70c3b168.html
***************************************************************************************************************************************************************
理想中的:
- 启动 Eclipse,然后选择 Help > Software Updates…。在出现的对话框中,单击 Available Software 选项卡。
- 单击 Add Site
- 在 Add Site 对话框的 Location 字段中输入下面的 URL:http://dl-ssl.google.com/android/eclipse。单击 OK。
- 回到 Available Software 界面,单击展开http://dl-ssl.google.com/android/eclipse,可以看到 URL 中包含的插件列表,其中有 Developer Tools 一项。选择 Developer Tools 旁边的复选框,单击 Install。
- 在接来下出现的安装窗口中,应该会出现被选中的 Android DDMS 和 Android Development Tools。单击 Next。
- 阅读并接受许可协议,然后单击 Finish。
- 重新启动 Eclipse。
*****************************************************************************************************************************************************************
为了和谐社会建设,我们。。。
使用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开发官网 现在好像不VPN也可以打开
74.125.113.121 developer.android.com
#更新的内容从以下地址下载
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com
-
有的用户接着就会看到加载出列表了。如果没有变化,重新打开SDK Manager。就会发现问题解决了。如图1
如果还是无法加载出列表,还是出现如图2红色内容,建议过几天再试试!
-
更新ADT插件的时候则使用网址http://dl-ssl.google.com/android/eclipse,而不是https://dl-ssl.google.com/android/eclipse,这个在官方开发文档里也有介绍