Change Version Number of App in Android Studio v 3.1

Following method is to change the version number of application in Android Studio V 3.1 using settings. There are two methods we can follow, let’s have a look at both:

Method 1: Using Setting Popup

Step 1) Just go to Project and Right Click on “app” then select “Open Module Settings

Change Version Number of App in Android Studio v 3.1

 

Step 2)  In opened Model select “Flavors” tab then change “Version Code” and “Version Name” as shown in the image below.

Change Version Number of App in Android Studio v 3.1

 

Now click “OK”.

Method 2: Changing “build.gradle” file values

Step 1:  Open build.gradle(Module:app) then change the value of “versionCode” and “versionName” under defaultConfig as shown below:

Change Version Number of App in Android Studio v 3.1

 

Step 2: Now click on “Sync Now

Change Version Number of App in Android Studio v 3.1

Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Someone

thanks