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
- Disable Instant run
- Update drivers
- Enable USB debugging
- Rebuild the project
- Sync with Gradle
- Run Invalidate caches/restart
- 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:
- Open the File option.
- Select Settings.
- Choose Build, Execution, Deployment.
- Select Instant Run.
- 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:
- Right-click Start and open Device Manager.
- Expand Portable devices.
- 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:
- On your phone, open Settings > About.
- Tap 7 times on the Build number to enable Developer options.
- Get back and open Developer options.
- 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:
- Open Android Studio.
- Click on Build.
- Click Clean project/Build.
- 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.
- READ ALSO: Fix: G-Sync not working in Windows 10
Here’s how to sync a project with Gradle:
- Open the File option.
- Choose Sync project with Gradle files.
- 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:
- Choose the File option.
- Select Invalidate caches/restart.
- 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:
- Fix: Android Studio Windows 10 errors in 4 quick steps
- How to Control Windows 8, 10 From Android
- Further proof for Andromeda phone found in Windows 10 SDK build
- Microsoft announces Visual Studio 2019: Here’s what’s new
Microsoft is all set to launch its next big update, Windows 10 version 1809 in October. While that should be a nice piece of news […]
The Windows 10 October 2018 Update (otherwise 18H2) rollout might now be two to three weeks away. For the last few months, new build previews […]