I have an Android APK in the Google Play store with an Target SDK of 23.
I have released a new version (same target SDK) and Google shows me this error:
If I
I just had the same issue with the versions, as I upgraded react-native to 0.60.5 So I calculated the differences between missing versionCode version
Version 1.9 = VersionCode => 4194313
Version 1.10 = VersionCode = 3145739
Difference : 194313 - 3145739 = 1048574
Each APK per architecture will use that formula
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
I have modified a little bit my formula
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode + 1048574
// applicationVariants are e.g. debug, release
applicationVariants.all { variant ->
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
// https://developer.android.com/studio/build/configure-apk-splits.html
def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode + 1048575;
}
}