Changing version name and version code is important when you updating your android app, Example version: 1.0.1, 1.2.2 etc.
Each time when you updating an android app on playstore, a new version name and version code is necessary, New version code also helps everyone to identify the app from earlier versions.
How to Change Android App Version?
To change version, go to the Project window, right-click on the app, then select Open Module Settings,
A new window will appear, select the Flavours tab in the window. this is where we will change the app version
- Select Version Code in the list, and increase it. for example, if it is 17, change it to 18.
- Next, select Version Name and increase it, for example, if it is 1.0, change it to 1.1, or 1.2, 1.2.0 etc
- Click Ok and wait until the gradle running finish.
That is it, now you have a new version of the app!