Android Studio - Install failed. Installation failed <a href='rerun'>Rerun</a>

Sometimes, the actual error message shows up in IDE (internal) Fatal Errors, accessible at the bottom right of the Android Studio IDE (should be a red circle with an exclamation mark within).

When it happened for me, I found out through Fatal Errors that my target device was out of space.


  1. Close emulator.
  2. Wipe data in AVD Manager for a particular emulator.

Image


Wiping emulator may help, but what if I'm using physical, configured for use device? This bug is weird and a bit random... for me restarting IDE and device helped, also used Android Studio -> Files -> Invalidate Caches / Restart and manual killing/restarting daemon with adb kill-server and adb start-server commands

also: note that some devices have additional toggles to turn on for developing purposes, e.g. Xiaomi have separated option in dev prefs for allowing installing apks through USB, USB debugging turned on isn't sufficient