emulator command not found

In this troubleshooting guide we learn how to fix emulator command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

emulator: command not found

or when using sudo you get the following error message

sudo: emulator: command not found

Solutions to emulator: command not found

How To Fix emulator: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu emulator is provided by google-android-emulator-installer package.

google-android-emulator-installer is:

This package will download Google’s Android emulator binary package, create a Debian package, and install it.

The Android SDK includes an Android device emulator — a virtual device that runs on your computer. The Android Emulator lets you develop and test Android apps without using a physical device.

WARNING: Installing this Debian package causes android-emulator to be downloaded from dl.google.com and/or from other suggested mirrors. The End User License Agreement of this binary package is available at developer.android.com.

To fix this problem, we can install more using the command below.

sudo apt-get -y install google-android-emulator-installer

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install google-android-emulator-installer.

sudo apt -y install google-android-emulator-installer

Or if you have aptitude installed you can use the following command.

sudo aptitude install google-android-emulator-installer

Summary

In this tutorial we learn how to fix emulator command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.