Can not find key.properties
EKwongChum opened this issue · comments
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.
FAILURE: Build failed with an exception.
-
Where:
Build file '/Users/ekwong/Code/Github/Flutter-UI-Kit/android/app/build.gradle' line: 29 -
What went wrong:
A problem occurred evaluating project ':app'.
/path/to/project/Flutter-UI-Kit/android/key.properties (No such file or directory)
so where is the key.properties file?
I face this problem today and solve it successfully. You can comment the code about signing config.
path: /android/build.gradle
line: 27, 49, 63
Just to expand on @weypro 's answer in case the line numbers he mentions don't exactly match, these are the lines to comment out:
-
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
-
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
} -
signingConfig signingConfigs.release
These lines should be around the line numbers @weypro mentioned
Is the line numbers not matching? I have already mentioned in the readme about this issue
No line number is not matching