How to define the number of version code for android project? -


in build.gradle file, there attribute called versioncode. whenever make update project, should increase value of versioncode?

android:versioncode —

an integer value represents version of application code, relative other versions.

typically, release first version of application versioncode set 1, monotonically increase value each release, regardless whether release constitutes major or minor release. means android:versioncode value not have strong resemblance application release version visible user. applications , publishing services should not display version value users.

screenshot of versioncode @ play store developer console:

enter image description here

android:versionname —

a string value represents release version of application code, should shown users.

screenshot of versionname in published app @ play store:

screenshot of play store developer console:

summary: version code keeping track of application update, used when upload new apk in play store. on other hand versionname string visible user can see there's new version available.

source: versioning applications


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -