When outputting in Flutter, I encounter a Keystore file error. If I entered the file address correctly.
CodePudding user response:
The path you have set for keystore file is wrong.Can you please share the path where you have keystore saved ?
CodePudding user response:
Make sure to:
Place your
.jks
file insideandroid/app/
.In
android
directory place yourkey.properties
file.In
android/app/build.gradle
file paste it insideandroid {}
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
and this outside any brackets:
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
CodePudding user response:
set the key inside the users folder inside the current user then try again keystore file not fount for sigining config 'release'
Open Android Studio
Drag and drop your keystore file over the app folder
Change the path of file like following
storePassword=my_password keyPassword=my_password keyAlias=key storeFile=key.jks
Click in File -> Sync project