Android SDK is a development environment for the Android mobile operating system which allows you to write applications for Android devices or gain elevated privileges on android devices with the help of third party software.

This brief tutorial is going to show you how to download and install it in Ubuntu 12.04 if you haven’t already done so. To install it, you first need to install Java JDK package or use the openJDK Java alternative that comes with Ubuntu.

In this tutorial, I’m going to be using the openJDK version of Java. To install Oracle Java version, then read this post first.

Objectives:

  • Install AndroidSDK in Ubuntu 12.04 (Precise Pangolin)
  • Enjoy!

 

To get started, press Ctrl – Alt – T on your keyboard to open the terminal. When it opens, run the commands below to install OpenJDK.

sudo apt-get install openjdk-6-jre openjdk-6-jdk icedtea6-plugin

 

android_precise

 

Next, download AndroidSDK package by running the commands below. At the time of this writing, the current version was r20. Or click this link to download the .tgz archive file.

wget http://dl.google.com/android/android-sdk_r20-linux.tgz

 

android_precise_1

 

After downloading, run the commands below to extract the downloaded file.

tar -xvzf android-sdk_r20-linux.tgz

 

android_precise_2

 

After extracting the package, run the command below to change into the tools directory.

cd ~/android-sdk-linux/tools

 

android_precise_3

 

Finally, run the commands below to begin the installation.

./android

 

android_precise_4

 

Install Android updates if there are any available.

 

android_precise_5

 

After updating, run the commands below to include AndroidSDK in your path environment.

gedit ~/.bashrc

 

Then add these lines at the very top of the file and save it.

export PATH=${PATH}:~/android-sdk-linux/tools

export PATH=${PATH}:~/android-sdk-linux/platform-tools

 

android_precise_6

 

 

Log out and log back in, then type android on the command line to launch the software.

android avd

 

Build your own phone.

 

android_precise_7

Frequently Asked Questions

How to install AndroidSDK in Ubuntu 12.04 using OpenJDK?

To install AndroidSDK in Ubuntu 12.04 using OpenJDK, first, install OpenJDK by running 'sudo apt-get install openjdk-6-jre openjdk-6-jdk icedtea6-plugin'. Then download the AndroidSDK package, extract it, and run the installation command.

What is Android SDK and its importance in app development?

Android SDK is a development environment for the Android operating system. It is crucial for writing applications for Android devices or gaining elevated privileges. It provides tools and libraries necessary for Android app development.

How to include AndroidSDK in the path environment in Ubuntu?

To include AndroidSDK in the path environment in Ubuntu, open the '.bashrc' file, add 'export PATH=${PATH}:~/android-sdk-linux/tools' and 'export PATH=${PATH}:~/android-sdk-linux/platform-tools' at the top, save the file, log out and log back in.

What are the objectives of installing AndroidSDK on Ubuntu 12.04?

The objectives of installing AndroidSDK on Ubuntu 12.04 include enabling app development for Android devices, gaining elevated privileges, and accessing necessary tools and libraries for Android app development.

How to download the AndroidSDK package in Ubuntu 12.04?

To download the AndroidSDK package in Ubuntu 12.04, run the command 'wget http://dl.google.com/android/android-sdk_r20-linux.tgz'. This will download the latest version of the AndroidSDK package.

What are the steps to extract the downloaded AndroidSDK package in Ubuntu?

To extract the downloaded AndroidSDK package in Ubuntu, run 'tar -xvzf android-sdk_r20-linux.tgz'. This command will extract the contents of the downloaded package.

How to launch AndroidSDK software after installation in Ubuntu?

To launch the AndroidSDK software after installation in Ubuntu, type 'android' on the command line. This will open the AndroidSDK tool for app development.

How to build a custom phone using AndroidSDK in Ubuntu 12.04?

To build a custom phone using AndroidSDK in Ubuntu 12.04, run the command 'android avd' after launching the AndroidSDK software. This will allow you to create and configure virtual Android devices.