Android SDK is a great development kit for developer to create applications for Android platform. To use it, you have to download the Adroid SDK manager. The SDK manager let you download the rest of SDK components (which will require internet connection). So how can you install Android SDK on computers that have no internet connection? This step by step guide will help you.
Important: All files must be downloaded first before we install it on a computer without internet connection. This works well in deployment environments where all files would be downloaded to one storage device and then moved to be installed on computers without internet connections.
1. Download the SDK manager. We won’t use it to download any components. We need it to lauch the emulator later.
2. Lauch your browser and go to http://dl-ssl.google.com/android/repository/repository.xml
3. Quicky find the android platform that you want to download by pressing Ctrl+F ( In FireFox), we want to find the latest Android platform 2.2 so we typed in: 2.2
Other available platforms: 2.1, 1.6 and 1.5
As you can see from the picture below, we have zip files for Linux, Mac osx and Windows. Highlight the part: android-2.2_r02-windows/linux/macosx.zip and copy it.
Note: We can use this trick to download future Android platform ( 2.3, 3.0….)
4. Paste what you have copied right after http://dl-ssl.google.com/android/repository/ and we will have the direct link to download the Android 2.2
5. After you download these two files mentioned above (the SDK manager and the zip file), you can install the Android SDK on your computer without internet connection.
6. Extract android-sdk_r06-windows.zip and android-2.2_r02-windows.zip.
7. Copy or cut all files inside android-2.2_r02-windows folder.
8. Go to …\android-sdk_r06-windows\android-sdk-windows\platforms and creat a new folder (You can name it anything you want, we named it android 2.2)
9. Paste all your copied/cut files to that folder (in this post is: android 2.2)
10. Lauch ….\android-sdk_r06-windows\android-sdk-windows\SDK Setup.exe
11. The SDK and AVD Manager will autodetect the SDK Platform.
12. Go to Virtual Devices and click on New to create a new android virtual device.
13. A new window will pop up, you can name your device, choose target, set size for SD card, choose skin. Click on Creat AVD to create your device.
14. Click on Start to lauch your virtual device.
To install android component do following steps
- Run android sdk manager on offline machine
- Click on show/hide log window
- here youu will find all the list of xml files where packages are available
Fetched Add-ons List successfully
Fetching URL: https://dl-ssl.google.com/android/repository/repository-7.xml
Validate XML: https://dl-ssl.google.com/android/repository/repository-7.xml
Parse XML: https://dl-ssl.google.com/android/repository/repository-7.xml
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
- 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.
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).
This has changed for android 4.4.2. .. you should look in the repository file and download https://dl-ssl.google.com/android/repository/repository-10.xml
- android-sdk_r20.0.1-windows.zip ( I think that is actually windows specific tools)
- android-19_r03.zip for all platform ( actual api) and store under platforms in #1
In manual install dir structure should look like
Now you have to..
- download win SDK helper ( avd/SDK magr): https://dl.google.com/android/android-sdk_r20.0.1-windows.zip
- actual sdk api https://dl-ssl.google.com/android/repository/android-20_r01.zip
- samples https://dl-ssl.google.com/android/repository/samples-19_r05.zip
- images : https://dl-ssl.google.com/android/repository/sys-img/x86/sys-img.xml e.g. https://dl-ssl.google.com/android/repository/sysimg_armv7a-18_r02.zip extract in : “Platforms > Android-4.4.2>”
- platform-tools: https://dl-ssl.google.com/android/repository/platform-tools_r19.0.1-windows.zip
- build-tools: create folder (build-tools at main sdk level) https://dl-ssl.google.com/android/repository/build-tools_r17-windows.zip
- copy aapt.exe, aidl.exe and dr.bat to platform-tools folder.
- you may download tools as well same way
- source: https://dl-ssl.google.com/android/repository/sources-19_r02.zip
At this point you should have a working android installation.