Home > OS >  Keystore file error during release in flutter
Keystore file error during release in flutter

Time:08-03

When outputting in Flutter, I encounter a Keystore file error. If I entered the file address correctly.

enter image description here

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 inside android/app/.

  • In android directory place your key.properties file.

  • In android/app/build.gradle file paste it inside android {}

 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'

  1. Open Android Studio

  2. Drag and drop your keystore file over the app folder

  3. Change the path of file like following

storePassword=my_password 
keyPassword=my_password 
keyAlias=key    
storeFile=key.jks

Click in File -> Sync project

  • Related