Cannot install ADT plugin because Eclipse cannot connect to Internet.

筅森魡賤 提交于 2019-12-06 15:26:06

问题


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 ?


回答1:


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 :

  1. 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 :

  1. Goto General -> Network Connections in eclipse preferences.

  2. Choose Manual for the Active Provider. As soon as you do that, you'll see that the checked settings under Proxy entries changes like so :



  3. Finally, edit the individual proxy settings by clicking on HTTP for example, and then clicking on Edit... 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.




回答2:


-add to your ini. Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient



来源:https://stackoverflow.com/questions/11848617/cannot-install-adt-plugin-because-eclipse-cannot-connect-to-internet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!