eclipse SDK 管理器无法获取内容 - 与 https://dl-ssl.google.com 的连接被拒绝

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/27388746/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 22:17:14  来源:igfitidea点击:

SDK Manager unable to fetch content - Connection to https://dl-ssl.google.com refused

androideclipseandroid-studioandroid-sdk-tools

提问by Krupal Shah

My Android SDK manager starts and then tries to fetch new updates. But it can't fetch content and shows following error in log window:

我的 Android SDK 管理器启动,然后尝试获取新的更新。但它无法获取内容并在日志窗口中显示以下错误:

Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to https://dl-ssl.google.comrefused

无法获取 URL https://dl-ssl.google.com/android/repository/addons_list-1.xml,原因:与https://dl-ssl.google.com 的连接被拒绝

I am using windows 7 32-bit and working with Eclipse ADT.

我正在使用 Windows 7 32 位并使用 Eclipse ADT。

回答by Krupal Shah

Solutions:

解决方案:

  1. Starting SDK manager as Administrator
  1. 以管理员身份启动 SDK 管理器

enter image description here

在此处输入图片说明

  1. Starting android.bat from command-line.
  1. 从命令行启动 android.bat。

enter image description here

在此处输入图片说明

  1. Updating Eclipse ADT from help/check for updates.
  1. help/check for updates.

enter image description here

在此处输入图片说明

  1. Disabling windows firewall from Control Panel\System and Security\Windows Firewall\Customize Settings
  1. 从禁用 Windows 防火墙 Control Panel\System and Security\Windows Firewall\Customize Settings

enter image description here

在此处输入图片说明

  1. Clearing download catche from tools/options in SDK Manager.
  1. 从 SDK 管理器中的工具/选项中清除下载捕获。

enter image description here

在此处输入图片说明

  1. Adding Google's repository website in use-defined site from tools/Manage Add-on sitesin SDK Manager. enter image description here

  2. Forcing https// sources to be fetched using http:// in SDK Manager

  1. tools/Manage Add-on sites在 SDK 管理器中的用户定义站点中添加 Google 的存储库网站。 在此处输入图片说明

  2. 在 SDK 管理器中使用 http:// 强制获取 https// 源

enter image description here

在此处输入图片说明

  1. If any of above solution does not workthen the last solution remained is to disable firewall of your antivirus.
  1. 如果上述任何解决方案不起作用,那么最后一个解决方案是禁用防病毒软件的防火墙

Some antivirus packages like Avast contains their own firewalls that blocks fetching content in SDK manager. You must have to disable antivirus firewall from its settings.

某些防病毒软件包(如 Avast)包含自己的防火墙,可阻止在 SDK 管理器中获取内容。您必须从其设置中禁用防病毒防火墙。

回答by rzymek

On Linux check that the cache directory exists:

在 Linux 上检查缓存目录是否存在:

mkdir -p ~/.android/cache

and that you have rights to it:

并且您有权使用它:

ls -ld ~/.android/cache/
drwxr-xr-x 2 YOU YOU 4096 lis 24 13:33 /home/YOU/.android/cache/