This guide is for Android developers who are for some reason unable to install Android SDK by following the instruction provided in the official Android Developer page. Mine is because of my company’s proxy that block this kind of installation.
It's for Eclipse IDE on Windows box only. We’ll collect first or download all the necessary files and then glue them together. I’ll provide and try to update the links here from time to time.
Required Files:
- Java Development Kit (JDK) Download
- Eclipse - Eclipse 3.6.1 or Helios is the version I'm using. Download
- Android Development Tools (ADT) Plugin - custom plugin so we can build Android applications using Eclipse IDE. Download
- Android SDK Starter Package - includes the core SDK Tools. Download
- Android SDK Tools, revision 10 - the complete tools component of the SDK. Download
- Android SDK Platform-tools, revision 3 - platform tools component of the SDK. Download
- Android SDK Platform - our target Android OS.
Android SDK Platform:
- |
- Android SDK Platform 2.3.3._r1 (Gingerbread) | Android SDK Samples for Android API 10, revision 1
- Android SDK Platform 2.2_r1 (Froyo) | Android SDK Samples for Android API 8, revision 1
STEPS:
- Install the JDK using the default setup.
- On you Android developer folder (ex. C:\Developers\Android\) place all the zip files you just downloaded.
- Create a workspace folder on your home folder (ex.C:\Developers\Android\workspace).
- Unzip the Android SDK Starter Package (android-sdk_r10-windows.zip). NOTE: I suggest to use WinRAR so we can just right-click the zip file and then choose Extract Here
- We now have the android-sdk-windows folder on our android developer folder. Inside this folder, delete the tools folder. Move the Android SDK Tools (tools_r10-windows.zip) and Android SDK Platform-tools (platform-tools_r03-windows.zip) zip files to this folder. Unzip them and rename as tools and platform-tools respectively.
- Inside android-sdk-windows folder there’s a platforms folder. Move and unzip the Android SDK Platform file (android-2.3.3_r01-linux.zip) on this folder.
- Inside android-sdk-windows folder, create samples folder. Move and unzip the Android SDK Samples zip file (samples-2.3.3_r01-linux.zip) to this folder.
- Unzip the Eclipse file (eclipse-SDK-3.6.1-win32-x86_64.zip).
- Inside eclipse folder, run eclipse.exe. It will ask for the workspace folder to use. Choose the workspace folder you created. You can optionally check the Use this as the default and do not ask again checkbox and then click OK.
- Still on Eclipse, select Help > Install New Software.... Click Add, in the top-right corner and then click Archive… Browse and select the downloaded ADT zip file (ADT-10.0.0.zip). Enter a name for this update site (ex. ADT Plugin) in the Name field and then click OK.
- Check the Developer Tools checkbox or click the Select All button and then clickNext button and then accept the defaults. (Sorry, you need to be online as some component need to be downloaded at this part. I’ll update it once I know how to do the offline mode of it). After the installation, Eclipse should be restarted.
- On Eclipse, select Window > Preferences. Select Android on the left pane. On SDK location, browse the select the Android SDK folder (android-sdk-windows) then clickApply.
- Still on Eclipse, select Windows > Android SDK and AVD Manager. Click theInstalled Packages on the left pane and you will notice, there's SDK Platform Android 2.3.3, API 10, revision 1 and Samples for SDK API 10, revision 1. We are now ready to create virtual devices.
- Click Virtual Devices on the left pane. Click New… button and give the virtual device a name (ex. Gingerbread). Select Android 2.3.3 API Level 10. Type 512 or more for SD Card size and then click Create AVD button. We are now ready to create our famous "Hello World" application
.