Cannot install ADT plugin because Eclipse cannot c

2019-04-17 09:00发布

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 ?

2条回答
Fickle 薄情
2楼-- · 2019-04-17 09:10

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

查看更多
地球回转人心会变
3楼-- · 2019-04-17 09:15

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 :

Native Active Provider

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 :

Native 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 :

enter image description here

  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 :
    Manual Proxy Settings

  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 :
    enter image description here

Using either of the above methods you should be able to get your eclipse connected to the internet.

查看更多
登录 后发表回答