From the course: Distributing Your Android App for Kotlin Developers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Manage the app version

Manage the app version - Android Tutorial

From the course: Distributing Your Android App for Kotlin Developers

Start my 1-month free trial

Manage the app version

- [Instructor] The version for your application is another important thing to make sure is configured correctly before you package it up. Let me close some of the Windows and files I have opened, clean up the view here. This is managed within the build.gradle file for the base module in your app. If you only have one module in your app, then that is the base module. In the Gradle Scripts section, let's open up the build.gradle file for the app module. In Android, default config, you can see it a line for version code and version name. By default, when you create an Android project, this will be set to one for the version code and 1.0 for the version name. The version code is always an integer and will need to be incremented every time you want to publish a new version. This is actually the fifth time it has been compiled and shared with others. There are a few bugs I had to fix the first time around. So I will…

Contents