Difference between versionName and versionNumber in Android

后端 未结 3 1917
予麋鹿
予麋鹿 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 07:53

    Android App Manifest documentation:

    android:versionCode

    An internal version number. This number is used only to determine whether one version is more recent than another, with higher numbers indicating more recent versions. This is not the version number shown to users; that number is set by the versionName attribute. The value must be set as an integer, such as "100". You can define it however you want, as long as each successive version has a higher number. [...]

    android:versionName

    The version number shown to users. This attribute can be set as a raw string or as a reference to a string resource. The string has no other purpose than to be displayed to users. The versionCode attribute holds the significant version number used internally.

提交回复
热议问题