First, Introduction
The Android app version number can be configured in the Androidmanifest.xml file, the tag <manifest> properties Android:versioncode and the Android:versionname configuration version number.
1 <Manifest2 xmlns:android= "Http://schemas.android.com/apk/res/android"3 Xmlns:tools= "Http://schemas.android.com/tools"4 Package= "AppName"5 <!--used for version upgrades, with a value of type int, to determine if the app needs to be upgraded->6 android:versioncode= "1"7 <!--The version number name, which is used to display the app version number that is visible to the user -8 android:versionname= "1.0.0" >9 Ten </Manifest>
Android:versioncode-for the device to identify the app version, used for app upgrade, the value of the int type, mainly used to determine whether the app needs a level, the first time is 1, after each increment.
Android:versionname--refers to the version number of the app, which is the version of the app that is commonly said, is mainly displayed to the user to see the app version number. Consists of three parts <major>.<minor>.<point>.
Android App version number configuration modification