app-release-unsigned.apk is not signed

andrew picture andrew · Jul 28, 2014 · Viewed 146k times · Source

I downloaded the zip file of an Android app on github and I'm trying to run it, but I get a dialog with this message

app-release-unsigned.apk is not signed. Please configure the signing information for the selected flavor using the Project Structure dialog.

I'm using Android Studio. What am I supposed to do?

Answer

NightFury picture NightFury · Jan 23, 2016

If anyone wants to debug release build using Android Studio, follow these steps:

  1. Set build variant to release mode.

enter image description here

  1. Right click on app in left navigation pane, click Open Module Settings.

  2. Go to Signing Tab. Add a signing config and fill in information. Select your keychain as well.

enter image description here

  1. Go to Build Type tab. Select release mode and set:

-Debuggable to true.

-Signing Config to the config. (The one you just created).

enter image description here

Sync your gradle. Enjoy!