Android Emulator uses Android Virtual Device (AVD) to create different configure devices or hardware to test or run your Android application on various Android devices virtually.
Suppose you have developed an Android application and you want to test your application on different devices like Nexus, Pixel and self-configurable devices or different hardware like Android watch, TV and so on. But you don’t have these devices or equipment.
In this case, Android Studio provides functionality to create different devices or hardware virtually through Android Emulator which uses AVD.
Note: Android Emulator does not include virtual hardware for Bluetooth, NFC, SD card insert, Device-attached headphones, and USB.
Android Emulator Requirement
- Software Development Kit (SDK) Tools version should be 25.0.10 or Higher
- 64 bit-processor
- Windows: CPU with UG (unrestricted guest) Support
- HAXM 6.2.1 or later
- Window or Linux: Intel processor with support for Intel VT-x, Intel EM64T (Intel 64) and Execute Disable (XD) Bit functionality
- Linux: AMD processor with support for AMD Virtualization (AMD-V)
Check the updated required on: Check latest requirement for AVD
Steps to Create Android Emulator
- Click on AVD Manager which located at the right corner. A new window will open.
- Click on “Create Virtual Device.” A hardware Selection window will open with a category like a Phone, TV, Tablet, and Wear. Select any one of them. Suppose we select Phone. A list of Phone Device will appear like Nexus S, Nexus One and many more. We have chosen the Nexus One.
- Click on “NEXT.” A “System Image” window will open. Here a list of system image like Oreo, Nougat, Marshmallow, Lollipop and so on. We have selected Lollipop. If a system image is not downloaded, you can download it.
- Click on “NEXT”. Then AVD window will open with
AVD Name: Provide Device name here.
You can change System Hardware and System Image.
Startup orientation: Portrait or Landscape
Emulated Performance: Graphics: Automatic/ Hardware/ Software
Device Frame: Enable (Checked) or Disable (Unchecked)
5. Click on “Finish.” A window will open with your Virtual device name. In “Actions” section click on the Play button. After a few minutes, Android device will appear on your windows screen.