Step 1: Check in System Settings -> Details, whether your Ubuntu is 32-bit or 64-bit.
Step 2: If your Ubuntu is a 32-bit OS then install
libgl1-mesa-dev. In case of 64-bit OS install ia32- libs (Ubuntu 13.04 or earlier), or libgl1-mesa-dev:i386 (Ubuntu 13.10 and above)
Step 3: Install openjdk-6-jdk or better, openjdk-7-jdk
Step 4: Download the Android SDK or the ADT Bundle from (http://developer.android.com/sdk/index.html#download) and unzip it to wherever you want.
Step 5: Check that the unzipped ADT Bundle folder (or Android SDK folder, as the case may be) have the folders
platform-tools. These folders contain some important commands stored. Add them to your executable path. Adding them to the path can be done as follows:
gedit ~/.bash_profile // geditor will be openedn when you give this command in terminal
Add following line:
//First two line is used for run android commend in your workspace.
// This line helps to run zipalign,jarsigner commend. Zipalign,jarsigner commend will use in certificate creation for your app.
After save above file. You have to run the following commend in the terminal.
Here you have to replace
/path/to/platform-tools by the absolute paths according to where you unzipped the SDK or the ADT bundle download. Now all the commands
emulator etc can be simply executed in the terminal without giving absolute paths. That is, you will not get a “command not found” error if you gave it without its absolute path.