1

I know this question has beed asked a few times, but it seems like any other solution does not work for me.

I'm supposed to update an app we have on the Google Play Store. The version name and code are maintained in the gradle.build with this piece of code:

def versionMajor = 1
def versionMinor = 1
def versionPatch = 0
def versionBuild = 1

android {
    defaultConfig {
        versionCode versionMajor * 10000 + versionMinor * 1000 + versionPatch * 100 + versionBuild
        versionName "${versionMajor}.${versionMinor}.${versionPatch}"
    }
}

The current version from the store is 1.0.7(.5) which translates to 10705. I'm supposed to update to 1.1.0(.1), which translates to 11001.

But the Google Play keeps telling me that I already have an APK with this version number. I checked every version of the app, back to 1.0.0 and I don't have any version with that number (obviously), since it is automatically calculated.

Am I doing something wrong?

I have another app, with a different package name, made for another client, that have this version code. But version codes are independant, right?

EDIT: Couldn't find a solution. I negociated with my boss to update the version code to 1.1.0(.2) instead. And it worked. Still don't know why the GPlay thought the 1.1.0(.1) already exist, since it doesn't.

Okaa-Pi
  • 135
  • 10

0 Answers0