I'm using gradle (assembleRelease) to generate the release apk.
I have saved the keystore file in project/app/filename.keystore (Within the application)
I have specified details related to signing in gradle.properties file
RELEASE_STORE_FILE=filename.keystore
RELEASE_STORE_PASSWORD=****
RELEASE_KEY_ALIAS=alias
RELEASE_KEY_PASSWORD=****
My build.gradle file has the following related to signing
signingConfigs {
release {
storeFile file(RELEASE_STORE_FILE)
storePassword RELEASE_STORE_PASSWORD
keyAlias RELEASE_KEY_ALIAS
keyPassword RELEASE_KEY_PASSWORD
}
}
I have specified signing configurations in the same gradle file as below
buildTypes {
release {
signingConfig signingConfigs.release
}
}
However, when I'm trying to create the release build I keep getting following error
Error:Execution failed for task ':app:package<flavor>Release'.
> Failed to read key from keystore
I tried following
Giving a wrong password to see if the file can be found.Gives the following error with correct path there for I assume the file can be found.
Failed to read key from store "": Keystore was tampered with, or password was incorrect
Appreciate your input!