19

I'm trying to update my app to the Google Play Store. I have the current version number of the app set to 2000000000 and would like to update it to 2000000001. Please don't ask my why there are such version numbers chosen.

enter image description here

I got this error message when I try to push the new version: "Upload failed The version code of your APK is high and you risk not being able to update your APK.". The one thing I don't understand is that according to official google documentations the max version number is MAXINT, 2147483647, so I still have roughly 150 000 000 versions left. The other thing is, I managed to update other app with the same version numbering convention, the app is on the same dev account and I have no such error at all.

enter image description here

I checked all the numbers couple of times to be sure I'm not doing some stupid typo. I also already contacted Google support but maybe someone here have some kind of solution?

Andrei T
  • 2,985
  • 3
  • 21
  • 28
Jan Slominski
  • 2,968
  • 4
  • 35
  • 61

3 Answers3

25

Google support responded to my requests. They changed the maximum available version code to 2000000000 and didn't update the documentation at the time I was posting this question (right now it is still MAXINT: 2147483647). Quite an edge case here but maybe someone will find this useful.

AL.
  • 36,815
  • 10
  • 142
  • 281
Jan Slominski
  • 2,968
  • 4
  • 35
  • 61
  • 2
    Cross-posted the answer [here](http://stackoverflow.com/a/38847981/4625829) and [here](http://stackoverflow.com/a/38866995/4625829) since it's the most viewed posts for max versionCode inquiries. – AL. Aug 10 '16 at 07:36
6

Looks like there was an update 08/11/2016 (UTC) in the docs. Not the old MAX_INT value or the 2000000000.

Warning: The greatest value Google Play allows for versionCode is 2100000000.

AL.
  • 36,815
  • 10
  • 142
  • 281
0

My Unity app had a high version code (not sure where from), I added version 3 and version code 3 in the Unity app, and that shut Google Play :) There is a crafty version for build.gradle though Unity 3D: What is the Android Bundle Version and Version Code and how do they relate?

Amateur
  • 11
  • 1