How to change the versionCode and versionName? [SOLVED] Android Studio


To change the versionCode or the versionName, just open the build.gradle file located at

and change the corresponding fields:

defaultConfig {
applicationId "com.bragitoff.curvefit_leastsquares"
minSdkVersion 14 //Change Minimum SDK Version here
targetSdkVersion 25 //Change Target SDK here
versionCode 4 //Change version code here
versionName "1.3" //change version name here
}

I'm a physicist specializing in theoretical, computational and experimental condensed matter physics. I like to develop Physics related apps and softwares from time to time. Can code in most of the popular languages. Like to share my knowledge in Physics and applications using this Blog and a YouTube channel.



One thought on “How to change the versionCode and versionName? [SOLVED] Android Studio

Leave a Reply

Your email address will not be published. Required fields are marked *