Check in System Settings -> Details, whether your Ubuntu is 32-bit or 64-bit
(Using software centre or command lines) If your Ubuntu is a 32-bit OS then install
In case of 64-bit OS install
ia32-libs (Ubuntu 13.04 or earlier), or
libgl1-mesa-dev:i386 (Ubuntu 13.10 and above)
openjdk-6-jdk or better,
Download the Android SDK or the ADT Bundle from here and unzip it to wherever you want.
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 ~/.pam_environment. A file opens. Just add these lines to that file:
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.