flutterflutter-dependenciesflutter-buildflutter-release

how to release flutter app to google play?


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


Solution

  • 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.