问题
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 :

- 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.
回答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