Keystore Not Found for Signing Config 'release'
Solution 1
I finally found the answer,
my problem was in the key.properties
file.
The problem occurred because I used storeFile="LOC"
The declartion of this variable for the path of the .jks
should NOT be in " "
quotation.
WRONG:
storeFile="C:/Users/User/Key/key.jks"
RIGHT: storeFile=C:/Users/User/Key/key.jks
In addition, I added the key.jks
file to the /app
folder.
Solution 2
this solution work for me... follow this instruction
https://flutter.dev/docs/deployment/android#create-a-keystore
and in key.properties don't put values inside ""
ex:
storePassword=454545
keyPassword=456565
keyAlias=upload
storeFile= C:/Users/{profile}/upload-keystore.jks
![t0m3r](https://i.stack.imgur.com/zgcuF.jpg?s=256&g=1)
t0m3r
I'm studying Computer Science at the Open University of Israel
Updated on December 21, 2022Comments
-
t0m3r over 1 year
I'm having a problem while running this command on Flutter:
flutter build appbundle --target-platform android-arm,android-arm64,android-x64
which I need to run in order to executeflutter build apk
.build.gradle
def keystoreProperties = new Properties() def keystorePropertiesFile = rootProject.file('key.properties') if (keystorePropertiesFile.exists()) { keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) } signingConfigs { release { keyAlias keystoreProperties['keyAlias'] keyPassword keystoreProperties['keyPassword'] storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null storePassword keystoreProperties['storePassword'] } } buildTypes { release { // TODO: Add your own signing config for the release build. // Signing with the debug keys for now, so `flutter run --release` works. signingConfig signingConfigs.release } }
key.properties
storePassword=XXXX keyPassword=XXXX keyAlias=key storeFile="C:/Users/User/Key/key.jks"
Error:
* What went wrong: Execution failed for task ':app:validateSigningRelease'. > Keystore file 'D:\Projects\Flutter\iusefully\android\app\"C:\Users\User\Key\key.jks"' not found for signing config 'release'.