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
SDK Manager unable to fetch content - Connection to https://dl-ssl.google.com refused
提问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:
解决方案:
- Starting SDK manager as Administrator
- 以管理员身份启动 SDK 管理器
- Starting android.bat from command-line.
- 从命令行启动 android.bat。
- Updating Eclipse ADT from
help/check for updates
.
- 从
help/check for updates
.
- Disabling windows firewall from
Control Panel\System and Security\Windows Firewall\Customize Settings
- 从禁用 Windows 防火墙
Control Panel\System and Security\Windows Firewall\Customize Settings
- Clearing download catche from tools/options in SDK Manager.
- 从 SDK 管理器中的工具/选项中清除下载捕获。
Adding Google's repository website in use-defined site from
tools/Manage Add-on sites
in SDK Manager.Forcing https// sources to be fetched using http:// in SDK Manager
tools/Manage Add-on sites
在 SDK 管理器中的用户定义站点中添加 Google 的存储库网站。在 SDK 管理器中使用 http:// 强制获取 https// 源
- If any of above solution does not workthen the last solution remained is to disable firewall of your antivirus.
- 如果上述任何解决方案不起作用,那么最后一个解决方案是禁用防病毒软件的防火墙。
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/