Ubuntu – Android: Command not found after installing Android Emulator

androidandroid-emulator

I followed the instructions from TechApple on how to install an android emulator. I followed all the steps, restarted the pc, but now I still cannot have my android avd command recognized.

The very top of my ~/.bashrc file is :

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

The error I get is :

alex@alex:~/android-sdk-linux/platform-tools$ android avd
android: command not found

What do I have to do next in order to get my emulator working?

Best Answer

In order to run emulator from terminal you need to -

cd /usr/local/android-sdk-linux/tools/
./emulator -list-avds

This will show all emulators. To choose your emulator -

./emulator -avd <avd_name_shown>