I’m running flutter build appbundle command and getting the error you can see on the image. what’s wrong in signingConfigs.
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
4
Answers
Got the Error solved: Could not get unknown property 'keystoreProperties'
Replaced this code:
With this code: in android/app/build.gradle file.
as suggested here: https://docs.flutter.dev/deployment/android#configure-signing-in-gradle
It might be possible that you are missing
keystoreProperties
file. This file is typically not checked in to source control, so if you are collaborating with others, ask your friends or coworkers to send you that file.@WSBT is correct after that use code below
You have to add the below file into an android folder directly.
Inside the
key.properties
write the below codeAlso, update the
android/app/build.gradle
file