An emulator Android Studio is an indispensable tool for developers and testers that allows you to run applications without a physical device. However, many people encounter difficulties when installing APK files or applications from Google Playfor the first time. Unlike a real smartphone, where you just need to tap on a file, in the emulator you need to perform several additional steps - from setting up a virtual device to manually downloading packages via ADB.

In this article we will look at three main installation methods: by dragging the APK into the emulator window, using the command line ADB, as well as installing applications directly from Google Play Store (if the emulator supports Google services). We will pay special attention to typical errors - for example, when the emulator does not see the file or displays a message INSTALL_FAILED_INSUFFICIENT_STORAGE. You will also learn how increase the internal memory of the virtual deviceif the standard 2 GB is not enough for your project.

1. Preparing the emulator: setting up a virtual device

Before installing applications, you need to create and run a virtual device (AVD, Android Virtual Device) with correct parameters. Compatibility with your APK and stability of operation depend on this.

Open Android Studio and go to Tools โ†’ Device Manager (or click on the icon Device Manager in the upper right corner). In the list of available devices, select "Create Virtual Device". It is important to consider here:

  • ๐Ÿ“ฑ Device type: for testing, choose models with resolution 1080ร—1920 (for example, Pixel 5), if your application is adapted for modern screens. To check compatibility with older devices, Nexus 5X.
  • ๐Ÿค– Android versionis suitable: if your application requires API 30+, select a system image Android 11 (R) or newer. To test on outdated versions, download Android 8.1 (Oreo).
  • ๐Ÿ’พ Memory size: by default, the emulator is created with 2 GB of internal memory. For large applications (for example, games), increase this parameter to 4โ€“8 GB in the settings AVD.

After creating the device, launch it with the button "Play". The first launch may take 5โ€“10 minutes - the emulator unpacks the system image. If the process is frozen at stage Cold Boot, try restarting Android Studio or selecting another system image (for example, x86_64 instead of armeabi-v7a).

โš ๏ธ Attention: If you are testing the application using Google Maps API or other Google services, be sure to select the system image with Google Play Services (marked with a ๐ŸŽฏ icon in the list). Without this Google Play Store and related APIs will not work.
๐Ÿ“Š Which emulator do you use most often?
Android Studio
BlueStacks
Genymotion
Other

2. Method 1: Installing the APK by dragging the file

The simplest method is to drag the .apkfile directly into the window of the running emulator. Android Studio 4.0+ and does not require knowledge of the command line.

Instructions:

  1. Download the APK file of the application (for example, from the website APKMirror or through building your project in app/build/outputs/apk/debug).
  2. Launch the emulator and wait until the system is completely loaded (a working one should appear table).
  3. Open the APK folder on your PC and drag the file into the emulator window. After 2-3 seconds, an installation notification will appear.
  4. Confirm the installation in the dialog box (if required).

If nothing happens after dragging:

  • ๐Ÿ”„ Make sure that the emulator is fully loaded (the desktop is visible).
  • ๐Ÿ“ Check that the APK file is not damaged (try opening it with an archiver - there should be folders inside res, META-INF etc.).
  • ๐Ÿ”ง In the emulator settings (Settings โ†’ Apps) allow installation from unknown sources.
โš ๏ธ Attention: Some APK files (for example, games with OBBfiles) may not launch after installation via drag and drop. In this case, use ADB or install via Google Play.

โ˜‘๏ธ Check before installation. APK

Completed: 0 / 4

3. Method 2: Installation via ADB (command line)

ADB (Android Debug Bridge) - a universal tool for interacting with an emulator or a physical device. It allows you to install APKs, copy files, and debug applications. This method is useful if drag and drop does not work or you need to automate the process.

Steps to install:

  1. Open a terminal in Android Studio (View โ†’ Tool Windows โ†’ Terminalor use the standard command line (cmd for Windows, Terminal for macOS/Linux).
  2. Check that the emulator is detected by the system by running the command:
    adb devices

    Your virtual device should appear in the list (for example, emulator-5554).

  3. Install the APK with the command:
    adb install path/to/file.apk

    For example:

    adb install C:\Users\Name\Downloads\app-debug.apk

If the installation fails with an error, pay attention to the code:

Error code Cause Solution
INSTALL_FAILED_INSUFFICIENT_STORAGE Not enough memory on emulator Increase the size of internal memory in the AVD settings or remove unnecessary applications
INSTALL_PARSE_FAILED_MANIFEST_MALFORMED Corrupted AndroidManifest.xml APK Rebuild the project or download the APK again
INSTALL_FAILED_VERSION_DOWNGRADE You are trying to install an older version of the application Uninstall the current version with the command adb uninstall application_package

To install an APK replacing an existing application, use the flag -r:

adb install -r path/to/file.apk

๐Ÿ’ก

If the emulator is not displayed in the list adb devices, restart it or run the command adb kill-server, then adb start-server.

4. Method 3: Installing applications from Google Play

If your emulator supports Google Play Services (you selected the appropriate system image when creating the AVD), you can install applications directly from the store. This is convenient for testing interaction with real Google services, for example, Firebase or Google Maps.

Instructions:

  1. Start the emulator and wait until the desktop appears.
  2. Open the application Play Market (๐ŸŽฏ icon).
  3. Login to your Google account (if required). For test purposes, you can use a separate account.
  4. Find the desired application and install it as usual. smartphone.

Method limitations:

  • ๐Ÿšซ Not all applications are available for installation on the emulator (for example, Netflix or Banking applications may block installation on virtual devices).
  • ๐Ÿ”’ Some functions (for example Google Pay) require a certified device and will not work in the emulator.
  • ๐Ÿ“ถ To download applications from Play Marketa the emulator must be connected to the Internet (check the network settings in AVD Manager).
โš ๏ธ Attention: When testing applications with In-App Purchases (internal purchases), use test Google accounts. Real payments may go through in the emulator, but it will be difficult to challenge them.
How to bypass the โ€œDevice is not certifiedโ€ restriction

In some cases, you can manually add Google services to an uncertified emulator. To do this, download Google Play Services APK from the site APKMirror and install it via ADB. However, this method does not guarantee stable operation and may violate Google's terms of use.

5. Solving common errors

Even with the correct setup of the emulator, users encounter typical problems. Let's look at the most common ones and how to fix them.

1. The emulator does not start or freezes on loading

  • ๐Ÿ”ง Check whether virtualization is enabled in the BIOS. (VT-x for Intel or AMD-V for AMD). Without it, the emulator will work extremely slowly.
  • ๐Ÿ–ฅ๏ธ Try changing the graphics renderer in the AVD settings: Settings โ†’ Advanced โ†’ Graphics โ†’ select Software instead Hardware.
  • ๐Ÿ—‘๏ธ Delete and recreate the virtual device - sometimes the configuration files are damaged.

2. The application is installed, but does not start

  • ๐Ÿ“ฑ Make sure that the version of the Android emulator is compatible with minSdkVersion and targetSdkVersion of your application (check in build.gradle).
  • ๐Ÿ”„ Reinstall the application with the flag -r (replacement): adb install -r file.apk.
  • ๐Ÿ“ View error logs in Logcat (View โ†’ Tool Windows โ†’ Logcat in Android Studio). Look for lines with E/AndroidRuntime.

3. There is not enough memory on the emulator

If you see an error INSTALL_FAILED_INSUFFICIENT_STORAGE, increase the size of the internal memory:

  1. Close the emulator.
  2. O Android Studio open Device Manager, click on the โš™๏ธ icon next to your AVD and select "Edit".
  3. In the Storage section, increase the parameter Internal Storage to 4โ€“8 GB.
  4. Save changes and restart emulator.
๐Ÿ’ก

If the emulator is slow, try reducing the screen resolution of the virtual device or disabling animation in the developer settings (Settings โ†’ Developer options โ†’ Window animation scale โ†’ Off).

6. Optimizing work with the emulator

To speed up testing and avoid constant problems, follow these tips:

  • ๐Ÿš€ Use snapshots (Snapshots): in In the AVD settings, enable the option Quick Boot. This saves the state of the emulator when closing, speeding up subsequent launches.
  • ๐Ÿ”„ Update tools: check for updates regularly Android Emulator and Android SDK via SDK Manager.
  • ๐Ÿ“ก Set up the network: if the emulator does not connect to the Internet, check the proxy server in Settings โ†’ Network & Internet โ†’ Proxy.
  • ๐Ÿ› ๏ธ Install Google Play Services manually: if your the emulator does not support them, download the latest version from APKMirror and install via ADB.

To speed up the emulator on weak PCs:

  • Reduce the number of CPU cores in the AVD settings (for example, from 4 to 2).
  • Disable Live Wallpaper and animations in Android settings.
  • Use images x86_64 instead of armeabi-v7a โ€”they work faster on most processors.

If you often test the same application, create one several AVD with different versions of Android. This will allow you to quickly switch between them without reconfiguring.

7. Alternative emulators for testing

If Android Studio Emulator is unstable, consider alternatives:

Emulator Pros Cons Suitable for
BlueStacks Simple interface, Google Play support Heavy for weak PCs, advertising Games, simple tests
Genymotion High performance, cloud devices Paid license for commercial use Professional testing
NoxPlayer Support for rooting, macros Can be blocked by antiviruses Automated testing
LDPlayer Optimized for games, lightweight Limited settings for developers Testing gaming applications

For professional development, it is better to stay on the built-in emulator Android Studioas it is maximally integrated with debugging tools (Logcat, Profiler). Alternatives are suitable for specific tasks, for example, testing game performance.

FAQ: Frequently asked questions about installing applications

Is it possible to install an APK on an emulator without Android Studio?

Yes, if you have it installed ADB separately from Android Studio. Download Platform Tools from official website, add path to adb to the environment variable PATH, then use the command adb install file.apk.

Why doesnโ€™t the emulator see my APK file when dragging and dropping?

Possible reasons:

  • The emulator has not fully loaded (wait for the desktop to appear).
  • The APK file is damaged (try downloading).
  • In the Android settings, installation from unknown sources is blocked (Settings โ†’ Security โ†’ Unknown Sources).
How to increase the internal memory of the emulator after creating it?

Unfortunately, it is impossible to change the size of the internal memory after creating an AVD. You will have to:

  1. Delete the current virtual device.
  2. Create a new one with the required amount of memory.
  3. Transfer data (if required) via adb pull i adb push.
Is it possible to test applications for Android TV on the Android Studio emulator?

Yes, but for this you need to:

  1. Create an AVD with an image Android TV (available in Device Manager โ†’ Create Virtual Device โ†’ TV).
  2. Make sure that your application supports the leanbackinterface (for TV).
  3. Use the remote control in the emulator (keys W/A/S/D for navigation).

Please note: some functions (for example, Google Cast) may not work in the emulator.

How to install OBB files for playing on the emulator?

OBB files (additional data for games) must be placed manually:

  1. Download the OBB file (usually in the format .obb and located in the archive with the game).
  2. Launch the emulator and connect to it via ADB.
  3. Create a folder for OBB files:
    adb shell mkdir /sdcard/Android/obb/application package/
  4. Copy the file to the emulator:
    adb push path/to/file.obb /sdcard/Android/obb/package.application/

Folder application package must match package name from AndroidManifest.xml (for example, com.example.game).