Difference between versionName and versionNumber in Android

后端 未结 3 1916
予麋鹿
予麋鹿 2021-02-05 07:13

Do the versionName and versionNumber have to be changed if a minor change is made in an Android Application or is it sufficient to change just one?

3条回答
  •  我在风中等你
    2021-02-05 08:06

    You don't need to change anything, but code looks nicer when you do it :)

    versionName is only for user purpose, they can see it, and it need to be a string

    versionCode is an integer and it's to determine which version is more recent. As long as it will be rising everything will be OK ;)

    Reference Link

提交回复
热议问题