【问题标题】:Android SDK installation failedAndroid SDK 安装失败
【发布时间】:2011-12-23 07:21:09
【问题描述】:

我是 android 新手,我正在尝试在 windows xp 中下载 android sdk。我在代理后面

在安装 sdk 时,我收到此错误

Fetching https://dl-ssl.google.com/android/repository/addons_list-1.xml Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to https://dl-ssl.google.com refused Fetched Add-ons List successfully Fetching URL: https://dl-ssl.google.com/android/repository/repository-5.xml Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-5.xml, reason: Connection to https://dl-ssl.google.com refused

在谷歌搜索中,我得到了以下 2 个解决方案。

1) 在 Android SDK 管理器上设置代理 2)强制http,而不是https。

我应该怎么做才能继续。任何帮助,将不胜感激。

解决方案

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

我设置了代理和端口,如网络浏览器(Internet Explorer/Firefiox)中所示

它的工作。 !

【问题讨论】:

  • 您能否手动获取这些文件而不会出现任何(网络?)问题?
  • 是的,我可以在 Firefox 中看到这个 xml
  • 当我启动 android sdk 管理器时,我可以进入工具菜单并选择选项。在那里我可以定义一个 http 代理,但我只能强制 https 而不是 https
  • @axel。谢谢,它在那里。我以某种方式错过了它。谢谢。
  • 不要在您的电脑中保留任何病毒,有时 sdkmanager.exe 会关闭,所以最好记住这一点

标签: android sdk installation


【解决方案1】:

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

在那里我设置了代理和端口,如网络浏览器(Internet Explorer/Firefiox)中所示

它的工作!

【讨论】:

  • 我也遇到了同样的问题,你说的“设置代理和端口在浏览器中显示”到底是什么意思?
  • 您是否在使用代理?如果是,将有代理的 IP 地址和端口号。使用它。
【解决方案2】:

在我的新 Win 7 PC 上进行调查时,我发现我的 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.

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-04-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多