Articles → Android → Multiple Versions Of APK
Multiple Versions Of APK
Build Variants
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
versionNameSuffix "-release"
}
debug {
applicationIdSuffix ".debug"
debuggable true
versionNameSuffix "-debug"
}
beta {
applicationIdSuffix ".beta"
versionNameSuffix "-beta"
}
}
- Release
- Debug
- Beta
How Do You Select A Build Variant?
- Go to Build → Select Build Variant...
Click to Enlarge
- Build variant window will appear where you can change the build variant
Click to Enlarge
How To Use Build Variant?
- Make the changes in the code, you want in a particular build.
- Select the build variant.
- Build APK.