How to fix missing signing configuration when locally debugging Android release builds

Oftentimes, when locally building release builds, e.g. to debug issues, you don’t have access to the signing config as you maybe just have it available on your CI — after all you should really try to avoid storing your release keystores on your local development machine.

However, Android Studio will complain (inside the run configuration screen) about a missing signing configuration if you try to build release variants without:

In that case you can simply use the debug keystore by adding the following line to your release build type definition in your app’s build.gradle:

android {
buildTypes {
release {
signingConfig debug.signingConfig
}
}
}

That should allow you to compile and run the release version of your app locally.

Please note that in app purchases won’t work with the debug certificate. You also won’t be able to upload an APK signed with the debug certificate to the Play Store.

--

--

--

Founder and Senior Android Engineer. Crowdfunding addict. Trying hard to do the right thing and failing more often than not.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sven Bendel

Sven Bendel

Founder and Senior Android Engineer. Crowdfunding addict. Trying hard to do the right thing and failing more often than not.

More from Medium

Kotlin Multiplatform: Migrating Unencrypted Database using SQLCipher

Kotlin Flows Unit Tests

A screen shot of a popup window that helps you generate a test class

Some Best Practices for Android App Architecture

How to Use Upserting in Room