eclipse kepler“无法安装远程市场位置”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18604804/
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-10 21:52:23  来源:igfitidea点击:

eclipse kepler "Cannot install remote marketplace locations"

eclipseeclipse-plugineclipse-keplereclipse-marketplace

提问by revolutionary

I have downloaded the latest eclipse version, eclipse kepler.

我已经下载了最新的 eclipse 版本,eclipse kepler。

But when i try to access the Marketplace inside eclipse or try to install ADT plugin for Android, it gives me this creepy error which is driving me crazy:

但是当我尝试在 eclipse 中访问 Marketplace 或尝试为 Android 安装 ADT 插件时,它给了我这个令人毛骨悚然的错误,这让我发疯:

Cannot open Eclipse Marketplace
Cannot install remote marketplace locations: Connection failed

This is most often caused by a problem with your internet connection. Please check your internet connection and retry.
Unable to read repository at http://marketplace.eclipse.org/catalogs/api/p.
Connection reset
Connection failed

This is most often caused by a problem with your internet connection. Please check your internet connection and retry.
Connection reset

回答by Sam

please put below line to eclipse.ini in the last it worked for me -Djava.net.preferIPv4Stack=true

请将下面的行放在 eclipse.ini 的最后一行,它对我有用 -Djava.net.preferIPv4Stack=true

回答by revolutionary

I figured out finally that:

我终于明白了:

Avira Anti-Virus Software was blocking the network requests by eclipse. After deactivating "enable web protection" in the Anti-Virus, the stupid Eclipse was able to update itself.

Avira Anti-Virus 软件正在阻止 eclipse 的网络请求。在 Anti-Virus 中停用“启用 Web 保护”后,愚蠢的 Eclipse 能够自我更新。

回答by Renaud

If you are sitting behind a corporate network it could be filtering out requests coming from eclipse. Switching to 3G on my phone made it work for me.

如果您坐在公司网络后面,它可能会过滤掉来自 eclipse 的请求。在我的手机上切换到 3G 让它对我有用。

回答by clinomaniac

This frustrated me for a while before I stumbled upon this link:

在我偶然发现此链接之前,这让我感到沮丧了一段时间:

https://www.eclipse.org/forums/index.php/t/783720/

https://www.eclipse.org/forums/index.php/t/783720/

It says clear SOCKS entry in Network connections and be in manual Active Provider.

它说在网络连接中清除 SOCKS 条目并在手动活动提供程序中。

The SOCKS entry was already clear but after clicking on clear again, it just worked so worth a shot.

SOCKS 条目已经清晰,但再次点击清除后,它真的很值得一试。