Setting Up An Emulator
Setting up the emulator to use as a testing device with Android Studio can be achieved in a few simple steps.
Start by opening Android Studio and clicking Tools > AVD Manager, you should see a window that looks like this pop-up:
By default, there should be at least one emulator already set up (usually a Nexus 5 device) but if not, click the "+ Create Virtual Device" button at the bottom of the dialog. You should then be presented with the "Select Hardware" wizard:
Here, you can select any device, size, resolution from the list (just ensure it meets your testing criteria down the line) and then click the blue Next button.
You will now be presented with to the System Image dialog:
It is important to note that you will need to have at least API 19 (Android 4.4 - KitKat) installed for maximum compatibility with Appium later. It is also recommended if running on an Intel CPU with your system that you may optionally install and configure HAXM from the SDK manager for maximum performance with your emulator (see here for further information: https://developer.android.com/studio/run/emulator ).
Once an Android system image has been selected (and downloaded if necessary) click the blue "Next" button and then verify your configuration settings before clicking the blue "Finish" button of the wizard. This will take you back to the main AVD window, titled "Your Virtual Devices". Click the little green arrow on the right side of the screen next to the device you just configured and a new window should open after a short pause displaying your new emulated Android device. Play with the emulator a little to ensure it is working as an Android device should and then keep it running in the background while you configure the rest of your system.
Congrats! Your emulator is set up and ready to go!