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.

Share:
725
Harsh Jadon
Author by

Harsh Jadon

Updated on December 26, 2022

Comments

  • Harsh Jadon
    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
      IronMan over 3 years
      hi, interesting, is there a stray > in the file path.
    • Harsh Jadon
      Harsh Jadon over 3 years
      yes @IronMan, storeFile=/key.jks> , '>' it was there by default
  • Harsh Jadon
    Harsh Jadon over 3 years
    Thank you! this worked for me storeFile=./key.jks instead od storeFile=/key.jks>