Friday, February 12, 2010

Set up Android development environment on Ubuntu 9.10

Experiments with setting up Android development environment in Ubuntu 9.10 karmic koala

Following packages are required for setup

Eclipse IDE

sudo apt-get install eclipse   
JDK 6 

sudo apt-get install sun-java6-jdk
Android SDK
  1. Download the latest Android SDK from 
  2. Copy that package to folder named android into your home folder
  3. tar -xvzf android-sdk_r04-linux_86.tgz
  4. mv android-sdk_r04-linux_86.tgz ~/android/
  5. cd ~/android/
  6. tar xzvf android-sdk_r04-linux_86.tgz
  7. - Edit your ~/.bashrc file and add a line to the bottom:export PATH=${PATH}:/home/padma/android/android-sdk-linux_86/tools/ 
  8. Go to /home/padma/android/android-sdk-linux_86/tools/
  9. run the android script : ./android
  10. In the resulting window, In setting menu add : 
  11. After that an “Available Packages” option. In that add repository link :  I clicked on that, then clicked the checkbox beside the “repository.xml” package to select all available packages and then clicked “Install Selected.”
Android Development Tools (ADT) for Eclipse.  
  1. Download ADT from
  2. Start Eclipse, then select Help > Install New Software.
  3. In the Available Software dialog, click Add....
  4. In the Add Site dialog, click Archive.
  5. Browse and select the downloaded zip file.
  6. Enter a name for the local update site Android Plugin in the "Name" field.
  7. Click OK.
  8. Go to “Window > Preferences” and locate/browse Android SDK path,(e.g here it is   /home/padma/android/android-sdk-linux_86)

Now create your first application with Android :