How to download and run Android Emulator via Command Line on Windows

The Android SDK includes a mobile device emulator which allows us to run android virtual device on our computer. In this article, I will show you how to create and run an android virtual device on Windows using command line. We will use the latest system image for our virtual device by using Android SDK. So let's get started! Follow the steps listed below:

Download Java for Windows

 

Download Android SDK

Download Android SDK

 

  • Extract the downloaded Android SDK zip file.

Extract Android SDK zip file

 

  • Note down the path of the directory where you have downloaded the Android SDK. For example, here it is: C:\Users\Shashwat\Downloads\adt-bundle-windows-x86-20130717\adt-bundle-windows-x86-20130717

Android SDK Folder Path

 

  • Click on Windows Start button and then search for Run program. Next, type in cmd as shown below:

Cmd.exe from Run program

 

  • In command line window, navigate to the directory where you have downloaded Android SDK (discussed above):

Command Line Window

 

  • Next, navigate to the tools folder present inside sdk folder as shown below:

Go inside Tools folder

 

  • Next, type the following command: android avd. This launches Android Virtual Device Manager. 

Launch Android Virtual Device Manager

 

  • Click on the New button to create a new android virtual device.

Android Virtual Device Manager

 

  • Set the properties of this new Android Virtual Device and click on OK, as shown below:

AVD -New device

 

  • Now, click on the Start button in Android Virtual Device Manager, as shown below:

AVD - Start device

 

  • Next, click on the Launch button:

AVD - Launch device

 

  • You will now see that your device is getting started.

AVD - booting up

 

  • Finally, you will see your new Android Virtual Device ready to be used. Now you should be able to interact with it!

AVD - Google Nexus