Flutter Issue | Keystore file not set for signing config release

ID : 131378

viewed : 7

Tags : flutterflutter

Top 5 Answer for Flutter Issue | Keystore file not set for signing config release

vote vote

91

The instructions here did not work for me out of the box. I had to change the key.properties file path to:

def keystorePropertiesFile = rootProject.file('app/key.properties') 

You can test your configuration is being read properly or not by printing the values to the console. For example, in your gradle file you can have:

println keystorePropertiesFile 

to make sure that object is populated with the values you expect

vote vote

88

My issue was that I've put the key.properties file in the folder /android/app and it was meant to be in /android/

vote vote

76

This one is for windows users. Inside key.properties i was using:

storeFile= C:\users\username\key.jks 

instead we need to use:

storeFile= C:/users/username/key.jks 

This solved my issue!

vote vote

60

The same problem I faced and after doing lots of R&D .... I have done these: First Executed this command:keytool -genkey -v -keystore c:\Users\Ziya\key.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias key

Then in key.properties: Changed the storeFile to this value: C:\\Users\\Ziya\\key.jks

Then Result I got:

flutter build appbundle Running Gradle task 'bundleRelease'...  Running Gradle task 'bundleRelease'... Done     5.3s √ Built build\app\outputs\bundle\release\app-release.aab         (17.7MB). 
vote vote

52

My Problem was that I stored the key.properties file in app folder instead of android folder.

Top 3 video Explaining Flutter Issue | Keystore file not set for signing config release

Related QUESTION?