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
To install android component do following steps
https://dl-ssl.google.com/android/repository/addons_list-2.xml is main xml file where all other package list is available.
lets say you want to download platform api-9 and it is available on repository-7 then you have to do following steps
note the repository address and go to any other machine which has internet connection and type following link in any browser
https://dl-ssl.google.com/android/repository/repository-7.xml
Search for
<sdk:url>**android-2.3.1_r02-linux.zip**</sdk:url>
under the api version which you want to download. This is the file name which you have to download. to download this file you have to type following URI in any downloader or browser and it will start download the file.http://dl-ssl.google.com/android/repository/android-2.3.3_r02-linux.zip
General rule for any file replace android-2.3.3_r02-linux.zip with your package name
Once the download is complete,paste downloaded ZIP(or other format for other os) file in your flash/pen drive and paste the zip file at
<android sdk dir>/temp
(ex:-c:\android-sdk\temp
) folder/directory in your offline machine.Now start the SDK manager and select the package which you have paste in temp and click Install package button. Your package has been installed.
Restart your eclipse and AVD manager to get new packages.
Note:- if you are downloading sdk-tools or sdk platform-tools then choose the package for OS which is on offline machine(windows/Linux/Mac).
Most of these problems are related to people using Proxies. You can supply the proxy information to the SDK Manager and go from there.
I had the same problem and my solution was to switch to HTTP only and supply my corporate proxy settings.
EDIT:--- If you use Eclipse and have no idea what your proxy is, Open Eclipse, go to Windows->Preferences, Select General->Network, and there you will have several proxy addresses. Eclipse is much better at finding proxies than SDK Manager... Copy the http proxy address from Eclipse to SDK Manager (in "Settings"), and it should work ;)
You can download manually by parsing the XMLs that you see in Android SDK Manager log.
Currently the XMLs are addon_list and repository. These xmls can change over a course of time.
It has the location of the SDKs, you can browse to the link and download directly via browser. These files has to be placed under proper folder, example the files of google APIs has to be placed under
add-ons
, if you don't know where the files has to go.Here is something to help you.
The blogpost from my blog to Install Android SDKs offline --> Offline Installation of Android SDK's
There is an open source offline package deployer for Windows which I wrote:
http://siddharthbarman.com/apd/
You can try this out to see if it meets your needs.
I work behind a firewall on windows and I have the Same problem. But I managed to fix it:
cmd
then hit Enter (displays the command prompt)netstat
In the results returned, find your Proxy address :
Your proxy address is one of the DISTANTMACHINEx
Here is how I figured it out. I am behind corporate firewall too.
Go to Chrome or your Internet Settings by clicking the wrench in Chrome --> Settings --> Under the Hood --> Network --> Change Proxy Settings
Click on LAN Settings and then Advanced. Copy the proxy server address and port.
Mostly the connection refused link occurs when trying to download SDK packages through Eclipse.
Navigate to the SDK Manager.exe and double click on it. Once it starts click on Tools --> Options and then enter the proxy server address and the Port #
Check the checkbox force https:// to http:// That's it your SDK Manager will now be able to download packages from google remote site without any issue even from behind a firewall.
I am on Windows by the way. Tried everything and this works great.