Cookies on this site

We would like to use cookies to understand how the site is used and to measure our campaigns. Nothing is set until you choose, and you can change your mind at any time from “Cookie settings” at the foot of every page. Privacy policy

Contact UsContact Us

Resources / Blogs

Engineering notes

How to append version name in Android apk file name using Gradle?

You might want to append your app version name in the name of your android app’s apk when you release your app frequently. You may try the following two ways to include the version name in apk name automatically.

· · 1 min read

Android Development

You might want to append your app version name in the name of your app’s apk. Specially, when you release your app frequently. Doing this you can distinguish the apk files easily. You may try the following two ways to include the version name in apk name automatically.

Open build.gradle file inside project’s module and proceed with any one of the following fixes-

Fix 1: Include archivesBaseName = “YourAppName-$versionName” in defaultConfig{}.

defaultConfig {
    applicationId "your.package.name"
    minSdkVersion 19
    targetSdkVersion 23
    versionCode 1
    versionName "1.0.0"
    archivesBaseName = "YourAppName-$versionName"
}

Fix 2: Include project.ext.set(“archivesBaseName”, “YourAppName-” + versionName); in defaultConfig{}.

defaultConfig {
    applicationId "your.package.name"
    minSdkVersion 19
    targetSdkVersion 23
    versionCode 1
    versionName "1.0.0”
     project.ext.set("archivesBaseName", "YourAppName-" + versionName);


}
Note: Both the fixes have been tested on Gradle plugin 2.1.0.

← All articles

Case studies

Application Software Development in practice

Client names are withheld. We are happy to share details on a call.

All case studies
  • Internal project

    4 roles, 1 app

    Computer repair

    Application Software Development

    Operations platform for our repair division

    A web application that runs the repair business end to end: a customer portal for booking and tracking repairs, and separate workspaces for technicians, accountants and administrators. Phase one went live in June 2026; phase two is in progress.

    • Four role-based workspaces in one app
    • Phase one live in June 2026
  • Product

    Card → follow-up

    Sales & events

    Application Software Development

    Business Card Intelligence: event leads to follow-ups

    Scan cards, PDFs or QR codes at an event and get deduplicated leads with AI-drafted follow-ups that send from your own Outlook. A web application on Azure with a mobile companion app in beta.

    • Leads deduplicated automatically
    • Follow-ups drafted in your own mailbox
  • Delivered

    Every change, flagged

    Food manufacturing

    AI Consulting

    Label comparison agent for a national food cooperative

    Compares two versions of a product label, highlights every change, annotates the PDF and returns an audit-ready list of differences. We moved it from Copilot Studio to Azure Functions when the document processing outgrew the low-code platform.

    • Audit-ready differences in one chat turn
    • Rebuilt from low-code to cloud functions

Keep reading

All Engineering notes articles

Want this applied to your environment?

Talk to the engineers who write these articles. We will look at your setup and tell you what to do first.