How To Create Android Virtual Device (AVD) In Android Studio

Before debugging and testing the android application, you should create an android virtual device ( AVD ) to start a simulator. You can specify special configurations for your AVD, and then start it for debugging and executing applications.

1. AVD Benefits.

  1. With AVD, the android app can be tested and executed on numerous virtual devices such as TV, Wear, Phone, or Tablet. You do not need to buy physical devices, this can save a lot of money.
  2. You can config a lot of virtual device parameters such as phone brand, android OS image, screen size, RAM size, SD card size, front or back Camera as you need, this provides big flexibility for you to customize the virtual device.

2. How To Create AVD In Android Studio.

  1. Click ” Tools —> Device Manager ” in the top menu bar. Or click the Device Manager icon directly in the android studio top toolbar.
  2. Then the Devices Manager window will pop up. There are 2 tabs ( Virtual, Physical ) on the window top area.
  3. Click the Virtual tab, if there do not have any existing AVD in the list, click the Create device button to create one.
  4. When you click Create device button, the Select Hardware window will pop up. Choose device types such as TV, Phone, WearOS, Tablet, Automotive. Also choose the virtual device’s brand, screen size, resolution, etc.
  5. If all the existing virtual devices do not fit your needs, click New Hardware Profile or Import Hardware Profiles button to add your customized virtual devices as you need. For normal use, choosing an existing one is enough.
  6. Click the Next button, then the System Image window will be shown. This window list various versions of android OS. Click the Download link to download and install the OS image that you want to run.
  7. Click the Next button, it will go to AVD Verify Configuration window. Click the Show Advanced Settings button to see detailed settings data for this virtual device.
  8. Click the Finish button and wait for some time, the android virtual device will be created completely.
  9. To start it, click the green triangle button in the AVD list Actions column. To edit it’s settings, click the pencil button.
  10. When the AVD is started, the device simulator will be shown on the screen. This means the AVD configuration is successful.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.