tags:

views:

2952

answers:

2

Is it possible to download the Android SDK components for offline install without using the SDK Manager? The problem is I am behind a firewall which I have no control over and both sites download URLs seem to be blocked (throws a connection refused exception)

https://dl-ssl.google.com/android/repository/repository.xml

http://dl-ssl.google.com/android/repository/repository.xml

Failed to fetch URL http://dl-ssl.google.com/android/repository/repository.xml, reason: Connection refused: connect

EDIT: I am using Windows XP

A: 

Which OS?

Everything you download should be placed in the android-sdk folder (in my case: j:\android-sdk-windows).

You can execute "SDK Setup.exe" (or the mac/linux command for this) and download everything and just copy your complete android-sdk folder to another computer. I have the complete SDK + Eclipse + Workspace on an external HDD that I can just plug in to another Computer and it works (except for JDK which should be installed and the AVD's which are located in the user directory). Don't forget to set the ANDROID_HOME environment var to point to your install dir.

Update: In the SDK Downloader you have a "force https:// sources to be fetched using http://" checkbox under the settings menu. Maybe check (or if checked) uncheck this may help you to download everthing from your firewalled computer.

SchlaWiener
That is the problem. The "SDK Setup.exe" throws a "connection refused" exception for both URLs.
Tawani
Even after changing the "force https://..." switch?Than you can just download everything from another computer and copy the whole android-sdk folder to a usb stick.
SchlaWiener
+5  A: 

Instructions for offline download here - http://qdevarena.blogspot.com/2010/05/download-android-sdk-standalone-for.html

Quakeboy
Worked great for me: http://dl-ssl.google.com/android/repository/android-2.2_r01-linux.zip
cdated
I suppose for Windows you'd want-> http://dl-ssl.google.com/android/repository/android-2.2_r01-windows.zip
cdated
Thanks @cdated I will update it with Froyo links too..
Quakeboy