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
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. Export them. Exporting them can be done as follows:
sudo 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.