Android Studio: Installation failed since APK was not signed

ImpromptuMusic picture ImpromptuMusic · Mar 5, 2015 · Viewed 11.1k times · Source

I am attempting to run my app in an emulator and have been receiving the following error:

Installation failed since the APK was either not signed, or signed incorrectly. If this is a Gradle-based project, then make sure the signing configuration is specified in the Gradle build script.

I am attempting to run the app with a debug setting so signing the app should not be necessary as it will be given a temporary signature upon building.

Answer

Alex K picture Alex K · Mar 5, 2015

This happens often when you install the same app generated on a different computer. Even the unsigned apk has a signature, so your phone is confused why you're trying to install something with the same package name that was generated on a different computer.

Go to your settings -> apps, then find the app in the list, and clear its data and uninstall it.

Then try installing again. That'll fix it.