Step 01: Tools for Developing Apps/Services (Java)

Page Last Updated: 6th October 2011

Downloads required:

  1. Download Java Standard Edition Development Kit (JDK)
  2. Download Eclipse
  3. Download Android Development Tools (ADT) Plugin for Eclipse
  4. Download Android Software Development Kit (SDK)
  5. Download Platform Tools
  6. Download Platform
  7. Download API
  8. Download Docs
  9. Download Code Samples
  10. Download HTC Sync (or OEM USB Drivers for your phone for use with Android Debug Bridge)

Installation Steps:

  1. Install Java Development Kit
    1. Execute jdk-7-windows-i586.exe and install it.
  2. Extract Eclipse
    1. Extract contents of eclipse-java-indigo-SR1-win32.zip to "c:\eclipse-java-indigo-SR1-win32"
    2. The folder named "eclipse" will be extracted and appear under "c:\eclipse-java-indigo-SR1-win32"
  3. Create Shortcut to Eclipse
    1. Use windows explorer and browse to "c:\eclipse-java-indigo-SR1-win32\eclipse"
    2. Right click eclipse.exe send its shortcut to the desktop
    3. Rename the short cut from "eclipse.exe - Shortcut" to "Eclipse"
  4. Extract Android Software Development Kit (SDK)
    1. Extract contents of android-sdk_r13-windows.zip to "c:\android-sdk_r13-windows"
    2. The folder named "android-sdk-windows" will be extracted and appear under "c:\android-sdk_r13-windows"
  5. Extract Platform Tools
    1. Extract contents of platform-tools_r07-windows.zip to "C:\android-sdk_r13-windows\android-sdk-windows"
    2. The folder named "platform-tools_r07-windows" will be extracted and appear under "C:\android-sdk_r13-windows\android-sdk-windows"
    3. Rename "platform-tools_r07-windows" to "platform-tools" such that "C:\android-sdk_r13-windows\android-sdk-windows\platform-tools_r07-windows" becomes "C:\android-sdk_r13-windows\android-sdk-windows\platform-tools"
  6. Extract Platform
    1. Extract contents of android-2.3.3_r02-linux.zip to "C:\android-sdk_r13-windows\android-sdk-windows\platforms"
    2. The folder named "android-2.3.3_r02-linux" will be extracted and appear under "C:\android-sdk_r13-windows\android-sdk-windows\platforms"
  7. Extract API
    1. Extract contents of google_apis-10_r02.zip to "C:\android-sdk_r13-windows\android-sdk-windows\add-ons"
    2. The folder named "google_apis-10_r02" will be extracted and appear under "C:\android-sdk_r13-windows\android-sdk-windows\add-ons"
  8. Run Eclipse
    1. Double click on "Eclipse - Java" icon on your desktop
    2. Select a location to place your workspace folder. You may leave it at the default suggested path
    3. Check the box "Use this as the default and don't ask again"
    4. Click on the "Workbench" icon
  9. Install the ADT Plugin for Eclipse
    1. Disable Ethernet/WiFi and any other network connection during the installation of ADT Plugin to prevent Eclipse from trying to connect to the internet to verify package information. If your connection firewall or limited for some reason (e.g. firewall or proxy), Eclipse will waste time trying to communicate with its servers without success, so its better to disable WiFi and unplug your Ethernet cable.
    2. While in Eclipse, click on the "Help" menu and select "Install New Software"
    3. Click Add, in the top-right corner
    4. In the Add Site dialog, click Archive
    5. Browse to and select "ADT-12.0.0.zip"
    6. Enter a name for the local update site (e.g., "Android Plugin") in the "Name" field.
    7. Click OK.
    8. In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
    9. In the next window, you'll see a list of the tools to be installed. Click Next.
    10. Read and accept the license agreements, then click Finish.
    11. Note: If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
    12. When the installation completes, restart Eclipse.
  10. Configuring the ADT Plugin
    1. While in Eclipse, Select Window > Preferences... to open the Preferences panel
    2. Select Android from the left panel.
    3. You may see a dialog asking whether you want to send usage statistics to Google.
    4. If so, make your choice and click Proceed. You cannot continue with this procedure until you click Proceed.
    5. Add "C:\android-sdk_r13-windows\android-sdk-windows" as the SDK Location in the main panel
    6. Click Apply, then OK.
    7. Close Eclipse.
  11. Set Tools Path
    1. Right click "My Computer" and select properties.
    2. Select "Advanced Settings" Click "Environment Variables"
    3. In the "System Variables" list, find "Path" and click Edit
    4. Append "C:\android-sdk_r13-windows\android-sdk-windows\platform-tools" to the text in the Variable value field
    5. Click OK twice
  12. Install docs
    1. Extract contents of docs-3.2_r01-linux.zip to "C:\android-sdk_r13-windows\android-sdk-windows"
    2. The folder named "docs_r01-linux" will be extracted and appear under "C:\android-sdk_r13-windows\android-sdk-windows"
    3. Rename "docs_r01-linux" to "docs" such that "C:\android-sdk_r13-windows\android-sdk-windows\docs_r01-linux" becomes "C:\android-sdk_r13-windows\android-sdk-windows\docs"
  13. Install Code Samples
    1. Extract contents of samples-2.3.3_r01-linux.zip to "C:\android-sdk_r13-windows\android-sdk-windows"
    2. The folder named "samples-2.3.3_r01-linux" will be extracted and appear under "C:\android-sdk_r13-windows\android-sdk-windows"
    3. Rename "samples-2.3.3_r01-linux" to "samples" such that "C:\android-sdk_r13-windows\android-sdk-windows\samples-2.3.3_r01-linux" becomes "C:\android-sdk_r13-windows\android-sdk-windows\samples"
  14. Install HTC Sync (or your phone's OEM USB Drivers)
    1. Execute setup_3.0.5579.exe and install it.

References: