Articles → Android → Multiple Versions Of APK

Multiple Versions Of APK

Build Variants

buildTypes {
  release {
    minifyEnabled false
    proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), ''
    versionNameSuffix "-release"
  debug {
    applicationIdSuffix ".debug"
    debuggable true
    versionNameSuffix "-debug"
  beta {
    applicationIdSuffix ".beta"
    versionNameSuffix "-beta"

  1. Release
  2. Debug
  3. Beta

How Do You Select A Build Variant?

  1. Go to Build → Select Build Variant...
  2. Picture showing the Select Build Variant.. option in the build menu
    Click to Enlarge

  3. Build variant window will appear where you can change the build variant
  4. Picture showing the build variant window in the android studio
    Click to Enlarge

How To Use Build Variant?

  1. Make the changes in the code, you want in a particular build.
  2. Select the build variant.
  3. Build APK.

Posted By  -  Karan Gupta
Posted On  -  Thursday, October 31, 2019


Your Email Id  
Query/FeedbackCharacters remaining 250