Developing mobile applications for Android requires constant testing on different devices. But buying dozens of smartphones to check compatibility is irrational. This is where AVD Manager (Android Virtual Device Manager), built into Android Studio, comes to the rescue. This tool allows you to create virtual emulators with various characteristics: from old versions of Android to the latest updates, from low-power devices to flagship smartphones.
However, many developers - especially beginners - have difficulty setting up AVD. How to properly add a new virtual device? Which settings should I choose for optimal performance? Why might the emulator not start? In this article we will analyze the process of creating an AVD taking into account the current requirements of Android Studio 2026+and also give recommendations for eliminating common errors.
What is AVD Manager and why do you need it
AVD Manager (Android Virtual Device Manager) is a tool v Android Studio, which allows you to create and manage virtual devices for testing applications. Essentially, this is an emulator that simulates the operation of a real smartphone or tablet on your computer.
Main tasks of AVD:
- ๐ฑ Testing on different versions of Android - from
Android 4.4 KitKatto the lastAndroid 15(at the time of writing). - ๐ Checking interface adaptability for different screen resolutions (from
320ร480to1440ร3200). - ๐ ๏ธ Debugging without a physical device - convenient if you donโt have all smartphone models at hand.
- ๐ Safe testing โ you can experiment with system settings without the risk of โbreakingโ the real device.
Without AVD, the developer would have to buy or rent dozens of devices, which is not always possible. However, virtual devices also have limitations: they can work slower than real smartphones and do not support some hardware functions (for example, NFC or IR Blaster).
โ ๏ธ Attention: The performance of the emulator directly depends on the power of your PC. If you have a weak processor or little RAM, the AVD may slow down or not start at all. In such cases, consider alternatives like Genymotion or testing on physical devices.
Preparing Android Studio to work with AVD
Before adding a virtual device, make sure that your Android Studio is ready to work with emulators. Here's what you need to check:
- Is Android Emulator installed?
Open
File โ Settings โ Appearance & Behavior โ System Settings โ Android SDK. The tabSDK Toolsshould contain a checkmark oppositeAndroid Emulator. If it is not there, install the component. - Are the system images downloaded?
In the same window, go to tab
SDK Platformsand make sure that images for the required versions of Android are downloaded (for example,Android 13.0 (Tiramisu)orAndroid 14.0 (Upside Down Cake)). - Is the path to the SDK configured?
Check the environment variable
ANDROID_HOMEโit should point to the folder with the Android SDK (usually thisC:\Users\UserName\AppData\Local\Android\Sdkon Windows or/Users/UserName/Library/Android/sdkon macOS).
If anything from this list is missing, Android Studio will offer to download the missing components automatically when you first launch AVD Manager. However, it is better to prepare in advance to avoid delays.
Step-by-step guide: how to add a new virtual device
Now let's move on to the main thing - creating an AVD. add a virtual device to Android Studio:
- Open AVD Manager
Run Android Studio and click on the icon
AVD Managerin the upper right corner (the icon with a phone and an arrow) or selectTools โ Device Manager. - Click "Create Virtual" Device"
In the window that opens, click on the button
Create Virtual Device(or+ Create Devicein new versions). - Select a device category
You will be prompted to select the device type:
- ๐ฑ
Phone- smartphones (for example, Pixel 7 or Samsung Galaxy S23). - ๐บ
Tablet- tablets (for example, Nexus 9 or Samsung Galaxy Tab S8). - ๐ฅ๏ธ
TV- Android TV (for example, NVIDIA SHIELD). - โ
Wear OS- smart watches (for example, Wear OS Square). - ๐
Automotiveโautomotive systems (for example, Automotive 1024p).
- ๐ฑ
- Select a specific model
After selecting a category, you will be offered a list of devices with different screen resolutions and pixel densities (
dpi). For example, for smartphones the following are popular:- Pixel 6 Pro (resolution
1440ร3120,512 dpi). - Pixel 5 (resolution
1080ร2340,440 dpi). - Nexus 5X (resolution
1080ร1920,420 dpi) - suitable for testing on weak devices.
- Pixel 6 Pro (resolution
- Select the system image (System Image)
At this stage you need to specify the Android version. Options available:
- ๐ฆ
Recommendedโimages with Google Play Services (needed for testing applications that use Google services). - ๐ฑ
x86_64orARMโprocessor architecture is better to choosex86_64(works faster). - ๐
Release Nameโ version code name (for example,Tiramisufor Android 13).
If the desired image is not in the list, click
Downloadnext to it. - ๐ฆ
- Configure AVD settings
After selecting the image, a window with additional settings will open:
- Device name (
AVD Name) โ come up with a unique name (for example,Pixel_6_Android14). - Orientation (
Portrait/Landscape) โ select the starting screen orientation. - Camera (
Front/Back) โ emulation of the front and rear cameras (you can selectVirtualScenefor test pictures). - GPU (
Graphics) โ for better performance selectHardware - GLES 2.0.
- Device name (
Click Finish. The new device will appear in the AVD Manager list.
โ๏ธ Check before starting AVD
Optimizing emulator performance
Even on powerful PCs, the Android emulator can run slowly. Here are several ways to speed it up:
| Parameter | Recommended value | Explanation |
|---|---|---|
| Graphic rendering | Hardware - GLES 2.0 |
Uses hardware acceleration of the video card. An alternative is Software, but it is slower. |
| RAM (RAM) | 1500โ2048 MB | Too small a value (<512 MB) will lead to slowdowns, too large (>4 GB) can load the system. |
| Virtualization (VT-x/AMD-V) | Included in BIOS | Without virtualization, the emulator will work 5-10 times slower. |
| Storage | SSD (not HDD) |
The emulator actively uses disk operations On the HDD, this can cause lags. |
| Screen resolution | No higher 1080p |
The higher the resolution, the higher the load on the GPU. This is enough to test the interface 720p. |
If the emulator is still slow, try:
- ๐ Reduce the number of CPU cores in the AVD settings (the default is 2โ4, try 1โ2).
- ๐๏ธ Clear the emulator cache via
.android/avd(delete the folder with the name of your AVD and create the device again). - ๐ Use Android Studio Electric Eel or later โin the latter versions, work with emulators is optimized.
If the emulator does not start with the error "HAXM is not installed", download and install Intel HAXM from the official Intel website, use Windows Hypervisor Platform (included in "Turn Windows features on or off").
Typical errors when working with AVDs and their solutions
Even experienced developers encounter problems when setting up AVDs. Here are the most common errors and ways to correct them:
1. Error: "No system images installed for this target"
Cause: The system image for the selected version of Android has not been downloaded. Android Studio The system image for the selected Android version has not been downloaded.
Solution:
- Open
SDK Manager(Tools โ SDK Manager). - Go to the
SDK Platformstab and download the desired version (for example,Android 13.0). - Return to
AVD Managerand repeat creating the device.
2. Error: "Emulator: emulator: ERROR: x86 emulation currently requires hardware acceleration!"
Cause: Hardware virtualization is disabled on your PC (VT-x for Intel or AMD-V for AMD).
Solution:
- Restart your computer and go to
BIOS/UEFI(usually by pressing theF2,DelorEscat startup). - Find the option
Virtualization Technology(orSVM Modefor AMD) and turn it on. - For Windows, also check whether
Windows Hypervisor Platformis enabled in the system components.
3. Error: "The emulator process for AVD was killed"
Cause: Not enough RAM or emulator conflicts with other apps (for example, with Docker or VirtualBox).
Solution:
- Close all resource-intensive applications (browsers, IDEs, games).
- Reduce the volume RAM for AVD in the settings (for example, from 2048 MB to 1536 MB).
- Try to run the emulator with the flag
-no-snapshot(to do this, open a terminal in the folder with the SDK and run the command:emulator -avd Your_AVD_Name -no-snapshot
โ ๏ธ Attention: If you are using macOS, make sure that you have the latest version installed Android Studio and the drivers for Apple Silicon (M1/M2) are updated (for example, for Apple Silicon) may require additional settings.
4. Error: "Failed to allocate memory: 8"
Cause: The system cannot allocate enough memory for the emulator (often found on Windows with a 32-bit system or when there is insufficient virtual memory).
Solution:
- Increase the page file in Windows settings (at least 4 GB recommended).
- Run Android Studio as administrator.
- Try creating an AVD with less RAM (for example, 1024 MB instead of 2048 MB).
AVD Manager Alternatives: When to Use Other Emulators
Although AVD Manager is a standard tool for Android developers, in some cases it is worth consider alternatives:
| Emulator | Pros | Cons | When to use |
|---|---|---|---|
| Genymotion | Faster AVD, support for cloud devices, ready-made configurations | Paid license for commercial use | For testing performance or UI/UX |
| BlueStacks | Optimized for games, simple interface | Not suitable for debugging code, a lot of advertising | For testing gaming applications |
| NoxPlayer | Support for rooting, multi-screen | May conflict with antiviruses | For testing applications with root access |
| Physical device | Maximum accuracy, support for all functions | You need to buy and configure devices | For final testing before release |
If you need to test the application on a rare version of Android (for example Android 4.0 Ice Cream Sandwich) or on a device with a non-standard resolution, Genymotion may be the best choice. Suitable for games or applications with high graphics requirements BlueStacks.
How to connect a physical device for debugging?
To use a real smartphone instead of an emulator, turn on Developer mode on it (click on Build number 7 times in the settings), then activate Debugging USB. Connect the device to the PC and confirm the trust of the RSA key. Android Studio It will appear in the list of available devices.
Tips for managing multiple AVDs
If you are working on multiple projects or testing an application on different versions of Android, you will need several virtual devices. Here's how to simplify their management:
- ๐ Group devices by projects - for example
ProjectX_Pixel5_Android13,ProjectX_GalaxyTab_Android12This will help you avoid confusion. settings. - ๐ Use snapshots โin the AVD settings you can enable state saving (
Quick Boot) so that the emulator starts faster. - ๐๏ธ Delete unnecessary AVD โold devices take up disk space (each - from 1 to 5 GB). To delete, click on the arrow next to the AVD and select
Delete. - โ๏ธ Export and import configurations - if you need to transfer the AVD settings to another PC, copy the folder with the device from
.android/avd.
For convenience, you can create a batchscript (for Windows) or a shellscript (for macOS/Linux) that will launch the required AVDs with one command. Example script for Windows:
@echo offcd %ANDROID_HOME%\emulator
emulator -avd Pixel_6_Android14 -netdelay none -netspeed full
emulator -avd Galaxy_Tab_Android12 -netdelay none -netspeed full
Save this file as start_emulators.bat and launch it when you need to quickly deploy multiple emulators.
Use Quick Boot (fast startup) in AVD settings to make the emulator start in 5-10 seconds instead of 1-2 minutes. This option saves the device state between sessions.
FAQ: Frequently asked questions about working with AVD Manager
Is it possible to run AVD without Android Studio?
Yes, the emulator can be launched from the command line. To do this, go to the folder %ANDROID_HOME%\emulator and run the command:
emulator -avd. Name_of_your_AVD
For example:
emulator -avd Pixel_5_Android13 -writable-system
Flag -writable-system allows you to make changes to system files (useful for rooting the emulator).
How to increase the internal memory of an AVD?
By default, virtual devices have limited storage (usually 512 MB - 2 GB). To increase it:
- Close the emulator.
- Open the AVD configuration file (located in
.android/avd/Your_AVD_Name/config.ini). - Find the line
disk.dataPartition.sizeand change the value (for example, todisk.dataPartition.size=4G). - Save the file and restart the AVD.
Please note that this does not always work for images with Google Play Services.
Why does the emulator not see the Internet?
If the AVD does not have access to the network, check:
- Proxy settings in Android Studio (
File โ Settings โ Appearance & Behavior โ System Settings โ HTTP Proxy). - Firewall or antivirus - they can block the emulator connection.
- Network parameters in AVD: when creating a device, select
Wi-Fias the network interface.
If the problem persists, try running the emulator with the flag:
emulator -avd Your_AVD_Name -dns-server 8.8.8.8,8.8.4.4
How to take a screenshot of the AVD screen?
There are several ways:
- In the emulator window, click on the icon
Camera(camera) in the panel tools. - Use hotkeys:
- Windows/Linux:
Ctrl + S(saves the screenshot to the clipboard). - macOS:
Cmd + S.
- Windows/Linux:
- Via
adb:adb shell screencap -p /sdcard/screen.pngadb pull /sdcard/screen.png
Screenshots are saved in the project folder or in .android/avd/Name_of_your_AVD/snapshots.
Is it possible to emulate calls or SMS in AVD?
Yes, in the emulator you can simulate calls and messages:
- Calls: In the console, run:
adb shell am start -a android.intent.action.CALL -d tel:123456789 - SMS: Send a message via
adb:adb shell am startservice -a android.intent.action.SENDTO -d sms:12345 --es sms_body "Hello, this is a test SMS" --ez exit_on_sent true
You can also use the panel Extended Controls in the emulator (icon with three dots โ Phone).