Keystroke file not Found. #Flutter
725
In key.properties
we should set the correct storeFile
:
storePassword=
keyPassword=
keyAlias=key
storeFile=./key.jks
You probably left an extra >
at the end, by following the documentation:
storePassword=<password from previous step>
keyPassword=<password from previous step>
keyAlias=key
storeFile=<location of the key store file, such as /Users/<user name>/key.jks>
Remember to keep the key.properties
file private and don't check it into public source control for security reasons.
Author by
Harsh Jadon
Updated on December 26, 2022Comments
-
Harsh Jadon over 1 year
*macOS
I have generated my keystroke file as name: 'key.jks'
when i run:
flutter build apk
error:
- What went wrong:
Execution failed for task ':app:validateSigningRelease'.
Keystore file '/key.jks>' not found for signing config 'release'. `
my 'key.jks' file location:
...android/app/key.jks
my 'key.properties'
storePassword=123456 keyPassword=123456 keyAlias=key storeFile=/key.jks>
my 'key.properties' location:
...android/key.properties
my 'build.gradle' location:
android/app/build.gradle
-
IronMan over 3 yearshi, interesting, is there a stray
>
in the file path. -
Harsh Jadon over 3 yearsyes @IronMan,
storeFile=/key.jks>
, '>' it was there by default
- What went wrong:
-
Harsh Jadon over 3 yearsThank you! this worked for me
storeFile=./key.jks
instead odstoreFile=/key.jks>