How to run Android Emulator from Terminal, Command prompt or Android Studio

First, you need to download Android Studio. Android Studio is the fastest tools for building apps on every type of Android device. Run Android Studio, and create a dummy project.  Create run button.

Select run emulator option box. Since you have not create any Android Virtual Device. Click ... button.

Android Emulator simulates a device and displays it on your development computer. It lets you develop, and test Android apps without using a hardware device.Now,  you can create virtual device to test your application and run android from your PC or Mac.

Now you can select preset hardware configuration with size, resolution and density. Select Nexus S and click next button.

Select System Image, in our case we select Lolipop API level 22. 

Give virtual device Name and you start using the  Android Emulator from your computer.

You can also run Android Emulator from terminal or command prompt with the following command.

emulator -avd <emulator name>

If you get the following error , please update your intel x86 emulator accelerator.

emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAXM must be updated (version 1.1.1 < 6.0.1).

For mac user , to install HAXM properly, run the following path. : 


No comments:

Post a Comment