Download the Android application with a different version code but with the same version name

Is it possible to download the application with a different version code, but with the same version name, as shown below:

Edit

Android: VersionCode = "1" Android: versionName = "1.0"

to

Android: VersionCode = "2" Android: versionName = "1.0"

+5
source share
2 answers

Yes. Version codes are unique identifiers for different versions of your application, and they must be different. Version codes must also be integers. On the other hand, the name of the version is what is shown on the Google Play Store for users, and it can be the same.

+3
source

Yes, you have to do this.

From http://developer.android.com/tools/publishing/versioning.html

android: versionName is a string value that represents the version of the application code version, as it should be shown to users.

This means that the version name is just a string presented to the user. The document does not indicate that this should be unique for each published version of your application. This is the versionCode attribute that identifies the actual version. This is an internal integer value that is not displayed to the user.

+1
source

All Articles