versionCode && and build.gradle

I have the same problem. It adds a “8” to all my new version of the apk (similar post).

I found the following in the build.gradle file:
def minSdkVersion = cdvMinSdkVersion ?: privateHelpers.extractIntFromManifest("minSdkVersion") // Vary versionCode by the two most common API levels: // 14 is ICS, which is the lowest API level for many apps. // 20 is Lollipop, which is the lowest API level for the updatable system webview. if (minSdkVersion >= 20) { defaultConfig.versionCode += 9 } else if (minSdkVersion >= 14) { defaultConfig.versionCode += 8 }

Apparently that’s the problem, does anyone know because it changes the version in the config.xml? What problem would bring change it?