FIX: Android Emulator error installing APK on Windows

3 minute read
android emulator error installing apk

Android Emulator found in the Android Studio SDK is a vastly used tool by all developers for the Android platform. Testing projects by installing APKs is the important step, but it seemingly won’t work for users who run the SDK on Windows. The installation error appears and they can’t finalize the installation.

We provided you with some troubleshooting steps below, by virtue of the Stack Overflow community. The most prominent insights we found are enlisted below so do give them a try.

How to fix APK installation error for Android Emulator on Windows

  1. Disable Instant run
  2. Update drivers
  3. Enable USB debugging
  4. Rebuild the project
  5. Sync with Gradle
  6. Run Invalidate caches/restart
  7. Reinstall Android Studio

1: Disable Instant Run

Let’s start with the most-suggested and, apparently, the most successful solution. The knowledgeable folks back at Stack Overflow suggested disabling the Instant Run option. After that, an APK installation was working as intended.

Follow these steps to disable the Instant run feature in Android Emulator:

  1. Open the File option.
  2. Select Settings.
  3. Choose Build, Execution, Deployment.
  4. Select Instant Run.
  5. Uncheck the “Enable Instant Run to hot swap code/resource changes on deploy (default enabled)” box.

2: Update drivers

Making sure that your drivers are properly installed and up to date is another important point. Make sure to install ADB and handset drivers. They’re, like all other drivers, found in Device Manager. After that, the problem should be gone.

Here’s where to check drivers and how to update them if the need arises:

  1. Right-click Start and open Device Manager.
  2. Expand Portable devices.
  3. Right-click on your handset devices and Update the device driver.

3: Enable USB debugging

Enabling this option is done on your handset and found in the Developer Options section. If it’s off, you won’t be able to install any APK project on your device. Afterward, once you connect your handset with the PC, you should see the prompt. Make sure to allow USB debugging for that individual PC.

Follow these steps to enable USB debugging on an Android device:

  1. On your phone, open Settings > About.
  2. Tap 7 times on the Build number to enable Developer options.
  3. Get back and open Developer options.
  4. Enable USB debugging.

4: Rebuild the project

Rebuilding the project might help, as well. Some users suggested that the “Clean” and then “Rebuild” commands provided them with the resolution. When the project was successfully rebuilt, users were able to install the APK to their handsets without any issues.

Here’s how to clean and rebuild project in Android Emulator:

  1. Open Android Studio.
  2. Click on Build.
  3. Click Clean project/Build.
  4. Finally, click Rebuild project.

5: Sync with Gradle

If you use the Gradle automation system when developing (and chances are you do), the problem might lie in a sync failure. In order to address this possible culprit, we suggest syncing it with the project. That should allow you to install APK without the error.

Here’s how to sync a project with Gradle:

  1. Open the File option.
  2. Choose Sync project with Gradle files.
  3. Wait it out and try installing the APK again.

6: Run Invalidate caches/restart

As with any other application, Android Studio stores all kinds of cached data. This speeds up the in-app processes but tends to create issues when creating new inputs and projects. Therefore, there’s the command which resets cache completely and it’s found under the File option in the Main bar.

Here’s where to find it:

  1. Choose the File option.
  2. Select Invalidate caches/restart.
  3. Click Invalidate and restart.

7: Reinstall Android Studio

Finally, if none of the previous solutions worked this out, we suggest reinstallation of the Android Studio client. This is the last resort, judging on the reports of affected developers. We hope it’ll help you too. You can download the Android Studio suite, here.

With that said, we can conclude this article. In case you have any alternative questions or suggestions, feel free to post them in the comments section below.

RELATED STORIES YOU SHOULD CHECK OUT:

For various PC problems, we recommend to use this tool.

This tool will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Quickly fix PC issues and prevent others from happening with this software:

  1. Download this PC Repair Tool with Patended Technologies
  2. Click “Start Scan” to find Windows issues that could be causing PC problems.
  3. Click “Repair All” to fix all issues (requires upgrade).