无法安装ADT插件,因为Eclipse无法连接到Internet。 [英] Cannot install ADT plugin because Eclipse cannot connect to Internet.
问题描述
我无法在Windows上的64位Eclipse上安装ADT插件,因为Eclipse无法连接到互联网。因此,我总是得到错误无法找到Repository
。
我检查确认它确实是Eclipse无法连接到互联网,因为内部网络浏览器似乎无法连接到任何网站。
此外,尝试使用外部浏览器访问网站工作正常。
获取eclipse连接到互联网或安装ADT插件的解决方法?
这可能与代理设置有关。 / p>
你有代理?
你必须通过代理才能访问互联网?
尝试这样做: code>开始 - >运行 - > inetcpl.cpl - >连接 - >局域网设置
你应该得到这样的东西:
你有东西吗?
系统代理设置 - 简单的方法
通常,如果您已经设置了系统代理设置( inetcpl.cpl
),这些应该由Eclipse自动获取,并应分类为 >网络连接 - > Active Provider :
然后本地设置是那些被检查的,可以区分为具有轻微黄色背景的设置。
这将需要:
1.通过在开始 - >中配置相同的方法来检查和设置系统代理设置。运行 - > inetcpl.cpl
然后转到连接 - > LAN设置
,然后填写地址
和端口
的值,如下所示: p>
- 重新启动Eclipse。然后转到常规 - >网络连接,然后选择本地提供商。
当您使用很多代理设置时,此方法最为有用的排除。
手动设置代理设置 - 不那么容易的方式
使用这种方法,我们只能在eclipse内设置代理设置,如下所示:
- 转到
常规 - > eclipse首选项中的网络连接
。
- 选择
手动
$ c> Active Provider 。一旦你这样做,你会看到代理条目
之间的选中设置如下更改:
- 最后,点击
例如HTTP
,然后点击编辑...
并填写代理服务器的值,如下所示:
使用上述方法之一,您应该可以将eclipse连接到互联网。
I cannot install the ADT plugin on 64-bit Eclipse on Windows because Eclipse cannot connect to the internet. Consequently, I always get the error Unable to find Repository
.
I checked to confirm that it is indeed Eclipse which cannot connect to the internet since the internal web browser cannot seem to connect to any sites.
Also, attempting to go to a site using external browser works fine.
Any ideas about how should I get eclipse to connect to the internet OR a workaround to install the ADT plugin ?
This is probably related to proxy settings.
Do you have a proxy ?
Do you have to go through a proxy to get access to the internet ?
Try doing this : Start -> Run -> inetcpl.cpl -> Connections -> LAN Settings
You should get something like this :
Do you have something there ?
System Proxy Settings - The easy way
Normally, if you have setup the system proxy settings there (inetcpl.cpl
), those should automatically be picked up by Eclipse and should be categorized as Native under General -> Network Connections -> Active Provider
:
Then native settings are those that are checked and can be distinguished as those with a slight yellowish background.
This would require that :
1. You check and setup the system proxy settings by configuring the same in Start -> Run -> inetcpl.cpl
and then by going to Connections -> LAN Settings
and then filling in the values for Address
and Port
like so :
- Restart Eclipse. Then goto General -> Network Connections` and choose the Native Provider.
This method is most useful when you have complicated proxy settings with lot's of exclusions.
Manually setting proxy settings - The not-so-easy way
With this method, we'll setup the proxy settings only within eclipse like so :
- Goto
General -> Network Connections
in eclipse preferences. - Choose
Manual
for theActive Provider
. As soon as you do that, you'll see that the checked settings underProxy entries
changes like so :
- Finally, edit the individual proxy settings by clicking on
HTTP
for example, and then clicking onEdit...
and filling in the values for your proxy server, like so :
Using either of the above methods you should be able to get your eclipse connected to the internet.
这篇关于无法安装ADT插件,因为Eclipse无法连接到Internet。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!