Click here to Skip to main content

Eclipse Protocol Error when Updating, or Installing ADT


Installing Eclipse to get Java working on Android is a lot more complicated than it (probably) should be. One of the problems I encountered was that when I tried to install the ADT plugin for Eclipse, no matter what I tried, it would fail with an exception:

* Unable to read repository at [HTTP URL]
* Address family not supported by protocol family: connect
* Unable to read repository at [HTTP URL]


If you Google for this, you will find it is a common problem, but none of the solutions I found would work for me, so I considered trying an update of Eclipse (brand new, just installed direct from the website) in case they had a fix.

And lo! I got the same error, but a bit more obvious: just

Address family not supported by protocol family: connect

Address Family? Connect? This couldn't be my ISP using (or not using) an IPV6 address, could it?

So, a quick Google later, and a bit of fiddling and faffing, and it works perfectly. Hopefully, this will save you some time as well...

Fixing the Problem

Close Eclipse.

Right click your shortcut to Eclipse, and select "Properties".

Add the following to your Target line:


so that it looks something like this:

"C:\Users\griff\Documents\My Software\My Development\Android\Eclipse\eclipse.exe" 

Press OK.

Now, if you run Eclipse again, updates will work, and so will adding the ADT plug in.

Points of Interest

I'm starting to hate Java already - and I haven't got to the point where I've actually seen any code yet...


  • Original version

Web01 | 2.8.160204.4 | Advertise | Privacy
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service