Skip to main content

Managing app versioning in Android Studio - simplifying versionCode, versionName, and versionNameSuffix

Versioning is an important aspect of any mobile app development process. In Android, this is handled through versionCode and versionName, which allow you to define the current state of your app for users and the Play Store. But where exactly should these be managed, and how can you ensure they propagate correctly across your project? This article covers the essentials of managing app versioning in Android Studio, using the build.gradle file.

 

Steps to creating an Android build using Android Studio

Each time a release is prepared for Google Play, the steps I work through are as follows.

 

Preparation to run a build

Check the Gradle build settings

Directed to the build.gradle file using the following file path

~/android/app/

The area of code in the build-gradle file to focus:

Subscribe to 2022.x