安卓SDK安装失败

4
我是android新手,正在尝试在Windows XP中下载Android SDK。 我处于代理后面。 在安装sdk时,我遇到了这个错误: 拉取https://dl-ssl.google.com/android/repository/addons_list-1.xml失败,原因:无法连接https://dl-ssl.google.com;成功获取Add-ons List;拉取URL:https://dl-ssl.google.com/android/repository/repository-5.xml失败,原因:无法连接https://dl-ssl.google.com。在搜索后,我得到了以下两个解决方案:1)在Android SDK管理器上设置代理;2)强制使用http而不是https。请问我该怎么做才能继续进行?非常感谢您的帮助。 解决方案:我们可以在SDK管理器中设置代理,在工具->选项中设置代理和端口,如网页浏览器(Internet Explorer / Firefox)所示。现在它已经可以使用了!

你能手动获取这些文件而不出现任何(网络?)问题吗? - TOUDIdel
是的,我可以在 Firefox 中看到这个 XML。 - M S
2
当我启动 Android SDK 管理器时,我可以进入工具菜单并选择选项。在那里,我可以定义一个 HTTP 代理,但我只能强制使用 HTTPS 而不是 HTTP。 - AxelTheGerman
@axel。谢谢,它在那里。我不知道怎么错过了。谢谢。 - M S
不要在您的电脑中保留任何病毒,有时sdkmanager.exe会关闭,所以最好记住这一点。 - Rizvan
2个回答

1

我们可以在SDK管理器中设置代理。在工具->选项中。

在那里,我设置了代理和端口,就像在Web浏览器(Internet Explorer / Firefiox)中显示的一样。

它正在工作!


我遇到了同样的问题,请问“按照浏览器中显示的将代理和端口设置好”的意思是什么? - dubyaa
你是否在代理后面?如果是,那么代理会有一个IP地址和端口号。请使用它们。 - M S

0

在我的新Win 7电脑上调查后,我发现我的ADT插件丢失了。通过添加它,我解决了这个问题:下载ADT插件

使用Eclipse安装的更新管理器功能,在您的开发计算机上安装ADT的最新版本。

假设您已经安装了兼容的Eclipse IDE版本,如上面的安装准备中所述,请按照以下步骤下载ADT插件并将其安装到您的Eclipse环境中。

Start Eclipse, then select Help > Install New Software....
Click Add, in the top-right corner.
In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:

https://dl-ssl.google.com/android/eclipse/

Click OK

Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded. Click Next.
Read and accept the license agreements, then click Finish.

Note: If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
When the installation completes, restart Eclipse.

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接