Tuesday, May 22, 2012

Android development - setup DEV environment

 Note this is work in progress and I am just writing down things to maintain the list of items I had to setup for starting up development on Android.

What you need
  • Eclipse (classic recommended)
  • Android SDK
  • Andriod development tools plugin for eclipse (ADT). In some cases, a new revision of ADT will have a dependency on a specific revision of the Android SDK Tools. If such dependencies exist, you will need to update the SDK Tools package of the SDK after installing the new revision of ADT. To update the SDK Tools package, use the Android SDK Manager (explained below)

Step 1. Preparing Your Development Computer
  • First download Eclipse  - classic is recommended)
  • http://www.eclipse.org/downloads/
  • Unzip the downloaded zip folder into a folder where you want to run eclipse from. There is no installation for eclipse

Step 2. Downloading the SDK Starter Package
  • Download the Android SDK from http://developer.android.com/sdk/index.html (installer_r18 ....exe)
  • Install the downloaded file
  • Run Android SDK manager (SDK manager.exe from where you installed SDK)
  • Launching the Android SDK Manager - The Android SDK Manager is the tool that you use to install and upgrade SDK packages in your development environment. You can launch the Android SDK Manager in one of the following ways.
  • If you are developing in Eclipse and have already installed the ADT Plugin, follow these steps to access the Android SDK Manager tool:
    • Open Eclipse
    • Select Window > Android SDK Manager.
  • Launching from the SDK Manager script (Windows only)
For Windows only, the SDK includes a script that invokes the Android SDK Manager. To launch the tool using the script, double-click SDK Manager.exe at the root of the the SDK directory
Setup proxy in Tools -> Options (popup to enter user name and password will come later). Close the ADK manager and open again for it to refresh the tools required

The list will be shown what needs to be downloaded. You could choose extras if you need them. The latest version of Android will be selected by default
Click on "Install <number> packages" button

Step 3: Configuring Eclipse for Plugin
  • Open Eclipse
  • If proxy, then select menu Window -> preference
  • Select General -> Network connections
  • Select active provider = Manual
  • Edit http and https options by selecting one at a time and clicking on edit
  • Enter proxy settings and save
  • Select menu Help -> Install new software
  • Click on Add and enter https://dl-ssl.google.com/android/eclipse/ in URL

No comments:

Post a Comment