eclipse Android SDK 日志显示:“下载中断:连接到 https://dl-ssl.google.com 被拒绝”,怎么办?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18330043/
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
Android SDK log shows: "Download interrupted: Connection to https://dl-ssl.google.com refused",what can be done?
提问by Abhishek
When I try to download the Android API the Android SDK Manager log shows
当我尝试下载 Android API 时,Android SDK Manager 日志显示
"Download interrupted: Connection to https://dl-ssl.google.com refused"
This is not allowing the repository to be added. I verified the proxy settings under Network settings . How do I add the repository..whats the problem?
这不允许添加存储库。我在 Network settings 下验证了代理设置。我如何添加存储库..有什么问题?
回答by Samitha Chathuranga
This might be because you are connected to internet via a proxy server. So if so, you should set the proxy settings. Go to Tools>Options of the Android SDK Manager and set Http poxy server and Http Proxy Port. eg:
这可能是因为您通过代理服务器连接到 Internet。因此,如果是这样,您应该设置代理设置。进入 Android SDK Manager 的 Tools>Options 并设置 Http poxy server 和 Http Proxy Port。例如:
Http poxy server:cache.mrt.ac.lk
Http Proxy Port:3128
Restart SDK manager and try again.
Http代理服务器:cache.mrt.ac.lk
Http 代理端口:3128
重新启动 SDK 管理器并重试。
回答by Netero
I also had a intruption when i try to unstall or update package in my SDK manager
当我尝试在我的 SDK 管理器中卸载或更新包时,我也遇到了中断
Downloading Google USB Driver, revision 9 Download interrupted: Invalid argument: connect Done. Nothing was installed.
下载 Google USB 驱动程序,修订版 9 下载中断:无效参数:连接完成。什么都没安装。
I resolved it by doing this :
我通过这样做解决了它:
In SDK Manager go to Tools=> Optionsand ckeck the " forces https//... sources to be fetched using http://... "as you can see in the picture
在 SDK Manager 中,转到 Tools=> Options并勾选“强制 https//... 使用 http://... 获取源代码”,如图所示
回答by DomonLee
I think this is the proxy problem.you should make the proxy settings blank.
我认为这是代理问题。您应该将代理设置设为空白。
- Tools>Options(SDK Manager)
- General>Network Connection(Preference)
- 工具>选项(SDK 管理器)
- 常规>网络连接(首选项)
回答by Escobar5
Sometimes I get this problem, going to Tools -> Options -> Clear cachesolves it for me.
有时我会遇到这个问题,转到工具 -> 选项 -> 清除缓存为我解决。