89.13 Uploading New App Bundle Revisions
The first app bundle file uploaded for your application will invariably have a version code of 1. If an attempt is made to upload another bundle file with the same version code number, the console will reject the file with the following error:
You need to use a different version code for your APK because you already have one with version code 1.
To resolve this problem, the version code embedded into the bundle file needs to be increased. This is performed in the module level build.gradle file of the project, shown highlighted in Figure 89-17:
Figure 89-17
By default, this file will typically read as follows:
plugins {
id 'com.android.application'
}'
android {
compileSdkVersion 31
defaultConfig {
applicationId "com.example.myapplication...