First, App update must have the same signature as the last installed version.
Second, Android will generate a debug keystore auto for the debug build. And a user generates release keystore for the release build.
Then, what you need to do is find out last debug keystore (usually at ~/.android/debug.keystore) with default key-password android
and alias androiddebugkey
. And set the debug keystore to be the release keystore.
android {
signingConfigs {
release {
storeFile file(LAST_DEBUG_STORE_FILE)
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}
}
Last: you can check the keystore by
keytool -list -keystore debug.keystore
password: android