This is the same problem as a number of other have reported, e.g.
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connect
On linux, I got it working executing the Android SDK Manager with sudo(in your android-sdk-linux/tools folder)
sudo ./android
This is most likely because you are connected to the Internet via a proxy server.
Go to Tools>Options
of the Android SDK Manager and set Http Proxy
server and Http Proxy Port.
HttpPproxy
server: add your proxy here
Http Proxy Port
: add the port
Restart SDK manager and try again.
Clearing the cache worked for me.
On the OS X version: Preferences... > Clear Cache
In Android SDK Manager select
Tools -> Options
then check the box "Force https://... sources to be fetched using http://..."
Use the ControlPanel applet in the java bin directory, (/usr/lib/jvm/jdk1.7.0/bin/ControlPanel) (change for your java version). In the Java Control Panel [General] TAB, Select the [Network Settings] button, Change the proxy settings from [Use browser settings] to [Direct connection]. (There are proxy settings in the Browser, Eclipse and the SDK which are all blank and only this java setting worked). Next in Android SDK tools dir, open the android shell script and towards the end of the file, find the line with:
exec "$java_cmd" \
and below this, insert the line
-Djava.net.preferIPv4Stack=true \
I have found that these 2 steps has fixed this for me using both ubuntu 12.04 64bit, java 1.7.0_21-b11 and ubuntu 12.04 32 bit, java 1.6.0_45.
Sometimes this problem is created by the antivirus program installed in your system. Set the antivirus to "Disable until the computer is restarted" option. In my case, I had installed Avast antivirus. I disabled it by: right click avast in notification area >> Avast shields control >> Disable until computer is restarted.