FIX: Android Emulator error installing APK on Windows

Aleksandar Ognjanovic By: Aleksandar Ognjanovic
3 minute read
android emulator error installing apk

Home » FIX: Android Emulator error installing APK on Windows

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.



Next up

5 steel structure design software to create amazing sketches

Vladimir Popescu avatar. By: Vladimir Popescu
Less than a 1 minute read

In the past, if you wanted to construct a steel structure,you first needed to manually create a construction plan and draw hundreds of sketches on […]

Continue Reading

What to do if your HP printer couldn’t print

Matthew Adams By: Matthew Adams
4 minute read

HP printer users have discussed “The printer couldn’t print” error on HP support forums. The full error message states: “Error printing on (printer model). The […]

Continue Reading

More Surface Pro 4 devices to be replaced due to faulty hardware

Giles Ensor avatar. By: Giles Ensor
3 minute read

Around the middle of this year, a firmware update for Microsoft Surface Pro 4 devices was released. Quickly afterwards, reports started coming in of display […]

Continue Reading