1

I want to release an flutter app for Google play store and I checked every step of in Instruction page of flutter, but every time I got this error:

* What went wrong:Execution failed for task ':app:validateSigningRelease'.> Keystore file not set for signing config release

update: I waw wrong with naming key file :) it was key.propertis an 'e' has been left

Saeed Ghasemi
  • 141
  • 1
  • 10

1 Answers1

1

You are probably missing the signingConfig for release inside your android/app/build.gradle file. It should look like this:

signingConfigs {
    release {
        keyAlias 'keyAlias'
        keyPassword 'keyPassword'
        storeFile file('storeLocation')
        storePassword 'storePassword'
    }
}

This should be put inside the android section.

puelo
  • 5,464
  • 2
  • 34
  • 62
  • no I inlcude it like this: signingConfigs { release { keyAlias keystoreProperties['keyAlias'] keyPassword keystoreProperties['keyPassword'] storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null storePassword keystoreProperties['storePassword'] } } – Saeed Ghasemi Jun 16 '21 at 19:22
  • And what is keystoreProperties? Are you sure that it is filled with `storeFile` for example? Without it, your code would set `storeFile` to null and probably also causing this error. – puelo Jun 16 '21 at 19:39