Maximum Length of Android versionName / versionCode (Manifest)

前端 未结 4 1444
一个人的身影
一个人的身影 2020-12-17 17:58

I am trying to find out the maximum length of both the android:versionName and android:versionCode attributes of the android manifest file?



        
4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-17 18:40

    Update 08/11/2016 (UTC):

    The docs has been updated. Not the old MAX_INT value or the 2000000000.

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


    Cross-post for visibility here.

    It seems there was a recent change in Google, making the maximum versionCode up to 2000000000 only.

    Reference post: Google Play Developer Console error: The version code of your APK is high and you risk not being able to update your APK


    PS: For those who are planning to provide reference to the official documentation where the mentioned max value is 2147483647, please read the answer first in the post I referenced. It mentions that as of current date (08/10/2016), its still not updated.

提交回复
热议问题