How to Create an Android Virtual Device (AVD) in Android Studio | Step-by-Step Guide
Published on: July 2026 | By: Lovejeet Singh, CodeSardar
Introduction
Hello friends! 👋
If you're starting Android app development, one of the first things you'll need is a way to test your app. You don't always need a physical Android phone — in fact, you can test everything using a virtual Android device on your computer.
In Android Studio, this virtual device is called an Android Virtual Device (AVD). It's like having a phone or tablet inside your computer that you can use to run and test your apps.
In this guide, I'll show you how to create your first AVD in Android Studio — step by step.
What Is an Android Virtual Device (AVD)?
An Android Virtual Device (AVD) is a software-based Android device that runs on your computer using the Android Emulator.
Each AVD includes:
- 📱 A virtual phone or tablet model (like Pixel 6 or Samsung Galaxy)
- 📲 An Android operating system (like Android 13 or 14)
- ⚙️ Hardware configuration (RAM, storage, screen size)
- 🖥️ Screen resolution and density
The Android Emulator uses the AVD to simulate a real Android device.
Why Use an AVD?
Using an Android Virtual Device offers several advantages:
- ✅ No physical phone needed — Save money on testing devices
- ✅ Test multiple Android versions — From Android 5.0 to the latest
- ✅ Simulate different screen sizes — Phones, tablets, foldables
- ✅ Easy debugging — Use Logcat and debugger tools
- ✅ Test UI layouts — See how your app looks on different devices
- ✅ Experiment freely — No risk of breaking a real device
System Requirements
Before creating an AVD, make sure your system meets these requirements:
- ✅ Android Studio installed
- ✅ Android SDK installed
- ✅ Android Emulator installed
- ✅ Hardware virtualization enabled in BIOS
- ✅ At least 8 GB RAM (16 GB recommended)
- ✅ Enough free storage space (at least 5-10 GB)
Step 1: Open Device Manager
- Launch Android Studio.
- From the main window, go to:
Tools → Device Manager
Alternatively, click the Device Manager icon from the toolbar (it looks like a phone with a play button).
The Device Manager will display all existing virtual devices (if any).
Step 2: Create a New Virtual Device
Click:
Create Device
Android Studio will display a list of available hardware profiles.
Step 3: Choose a Hardware Profile
Select the type of device you want to emulate. Some popular options include:
- 📱 Pixel phones — Clean Android experience
- 📱 Samsung Galaxy — Popular Android phones
- 📱 Tablets — For tablet-sized screens
- 📱 Foldable devices — For testing foldable screens
- ⌚ Wear OS — For smartwatch apps
After selecting a device, click Next.
Step 4: Download a System Image
The system image contains the Android operating system for the emulator.
If the image isn't installed yet:
- Choose the desired Android version (e.g., Android 14, API 34).
- Click Download next to the image.
- Wait for the download to complete (this may take a few minutes).
- Accept the license agreement.
- Click Finish.
Once installed, select the system image and click Next.
Step 5: Configure the AVD
Now you can customize your virtual device:
AVD Name
Choose a recognizable name.
Pixel 7 API 34
Startup Orientation
Choose:
- Portrait — Vertical orientation (default for phones)
- Landscape — Horizontal orientation (better for tablets)
Memory and Storage
The default values work well for most beginners. You can adjust them later if needed.
After reviewing the settings, click:
Finish
Congratulations! 🎉 Your AVD is now created.
Step 6: Start the Emulator
In Device Manager, locate your new virtual device.
Click the Play button (▶️) next to it.
The Android Emulator will launch. The first startup may take a few minutes as Android completes its initial setup. Subsequent launches are much faster.
Step 7: Run Your App on the AVD
Now that your emulator is running, you can test your app:
- Open your Android Studio project.
- Click the Run button (▶️) in the toolbar.
- Select your virtual device from the list.
- Wait for the build process to finish.
Android Studio will install and launch your app on the emulator.
Managing Virtual Devices
Device Manager allows you to:
- ▶️ Start an emulator
- ⏹️ Stop a running emulator
- ✏️ Edit an existing AVD (change RAM, storage, etc.)
- 📋 Duplicate a device (useful for testing different versions)
- 🗑️ Delete unused devices to free up storage space
Common Problems and Solutions
Problem 1: Emulator Doesn't Start
Why: Hardware virtualization disabled, missing Hypervisor driver, or insufficient RAM.
Solution:
- Enable virtualization in BIOS/UEFI (look for Intel VT-x or AMD-V).
- Install the Intel HAXM or Windows Hypervisor Platform driver.
- Close other applications to free up RAM.
Problem 2: System Image Download Fails
Why: Internet connection issue or insufficient storage.
Solution:
- Check your internet connection.
- Free up storage space on your computer.
- Restart Android Studio and try again.
Problem 3: Emulator Runs Slowly
Why: Hardware acceleration not enabled, low RAM, or outdated emulator.
Solution:
- Enable hardware acceleration.
- Increase RAM allocation for the AVD.
- Close unused background applications.
- Update Android Studio and the Emulator.
Best Practices for Using AVDs
- ✅ Keep Android Studio updated — Latest version has better emulator performance.
- ✅ Use hardware acceleration — Makes the emulator much faster.
- ✅ Install the latest SDK packages — Support for newer Android versions.
- ✅ Delete unused virtual devices — Saves storage space.
- ✅ Test on multiple Android versions — Ensure your app works for all users.
- ✅ Allocate sufficient system resources — At least 8 GB RAM recommended.
Conclusion
Creating an Android Virtual Device (AVD) is one of the first steps in Android app development. By selecting a hardware profile, downloading a system image, and configuring the emulator, you can quickly create a virtual Android device for testing your applications.
Whether you're building your first Android app or testing new features across different Android versions, the Android Emulator provides a reliable and convenient environment for development.
I've been using AVDs for years, and they've never let me down. They're an essential tool for every Android developer.
If you found this guide helpful, please subscribe to CodeSardar for more Android development tutorials!
Happy coding! 🚀📱
Frequently Asked Questions (FAQs)
1. What is an Android Virtual Device (AVD)?
An AVD is a virtual Android phone or tablet that runs on your computer using the Android Emulator. It allows you to test apps without a physical device.
2. Do I need a physical Android phone to test my app?
No. You can use an Android Virtual Device to build, test, and debug apps directly on your computer.
3. Why is my Android Emulator running slowly?
Slow performance is often caused by disabled hardware virtualization, limited RAM, or outdated emulator components. Enable virtualization and increase RAM allocation.
4. Can I create multiple AVDs?
Yes. Android Studio allows you to create multiple virtual devices with different Android versions and hardware profiles.
5. How do I delete an AVD?
Open Device Manager, locate the virtual device, open its options menu (three dots), and choose Delete to remove it.
6. How much RAM do I need for the Android Emulator?
Google recommends at least 8 GB RAM, but 16 GB is ideal for smooth performance, especially if you're running multiple applications.
7. Can I test my app on different Android versions using AVD?
Yes! You can create separate AVDs for each Android version you want to test (like Android 11, 12, 13, and 14).
Complete Video Guide / Tutorial
📌 CodeSardar — Helping beginners learn technology, one tutorial at a time.