BuildStack DocsOpen app →
Docs › Versioning your app

Versioning your app

Android apps carry two version fields:

Set the version on the build form

On the Build tab (Android), the Version name and Version code fields are optional:

build.gradle).

(to app.json and the generated build.gradle), so you don't have to edit and commit your repo just to bump a version.

Publishing to Google Play

This is where versionCode matters most. If you upload a versionCode that Play has already seen, the publish fails with "Version code N has already been used."

  1. Check the highest versionCode currently on Play (Play Console → your app →

any track, or App bundle explorer).

  1. On the build form, set Version code to a higher number.
  2. Build with Publish to Google Play on — see

Publish to Google Play.

A simple convention: bump versionCode by 1 for every build you publish, and set versionName to the release users should see.

Tips

spent, even if that release was a draft you never rolled out.