FIX: Android Emulator error installing APK on Windows

3 minute read
android emulator error installing apk

Home » Fix » 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.

RELATED STORIES YOU SHOULD CHECK OUT:

Discussions

Next up

KB4516421 update fixes a crucial audio issue in Windows 10

Alexandru Voiculescu By: Alexandru Voiculescu
2 minute read

Windows 10 version 1903 has a new non-security update that addresses a problem in which users are unable to use USB Audio 2.0 multi-channel microphones […]

Continue Reading

How to fix the VPN Client agent error for Cisco AnyConnect

Matthew Adams By: Matthew Adams
2 minute read

Cisco AnyConnect is VPN software that incorporates advanced protection for blocking malware at endpoints. However, some users have said that they can’t install or launch […]

Continue Reading

How to use different currencies with Revolut

Vlad Turiceanu By: Vlad Turiceanu
2 minute read

The Revolut service comes in handy especially when you travel abroad. You can use it for spending and withdrawing money from ATM’s or exchanging currency […]

Continue Reading