I had the same trouble with any configuration that i did. I was following the next link https://docs.microsoft.com/en-us/appcenter/build/android/code-signing
Build.gradle setting
signingConfigs {
releaseSigningConfig {
storeFile rootProject.file('app/marketnow.keystore')
storePassword 'Abcd.1234'
keyAlias 'marketnow-key'
keyPassword 'Abcd..1234'
}
debug {
storeFile rootProject.file('app/debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}
buildTypes {
debug {
signingConfig signingConfigs.debug
}
release {
// Caution! In production, you need to generate your own keystore file.
// see https://facebook.github.io/react-native/docs/signed-apk-android.
signingConfig signingConfigs.releaseSigningConfig
//minifyEnabled enableProguardInReleaseBuilds
//proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
Solved change extension to .jks
I faced the same error myself and found the .gitignore file excludes keystore files by default. So this error might be caused by your keystore file not being included in your git commits. (your keystore is only on your local machine and not in git)
You can edit .gitignore and remove *.keystore or rename your keystore file to use .jks as jks files are not excluded in .gitignore
@rossdonald this file shouldn't be added to a public repo
@andvalsol in most cases the project is not public, so I think you can upload it to your repo! Unignoring it solved the issue for me..
Most helpful comment
I faced the same error myself and found the
.gitignorefile excludes keystore files by default. So this error might be caused by your keystore file not being included in your git commits. (your keystore is only on your local machine and not in git)You can edit
.gitignoreand remove*.keystoreor rename your keystore file to use.jksas jks files are not excluded in.gitignore