title: Google Play - You need to use a different version code for your APK
body: <p>I know this question has beed asked a few times, but it seems like any other solution does not work for me.</p>
  
  <p>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:</p>
  
  <pre><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}"
      }
  }
  </code></pre>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>Am I doing something wrong?</p>
  
  <p>I have another app, with a different package name, made for another client, that have this version code. But version codes are independant, right?</p>
  
  <p>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.</p>