Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
app module's build.gradle file for Android App Bundle
// 'app' module should have the application plugin.
apply plugin: 'com.android.application'
android {
defaultConfig {
...
// Specify the version code, only once for each new version of your app, for your App Bundle
// No need to have different version codes for different APKs generated.
// All split APKs will share the same version code once installed via Google Play.
versionCode 1
versionName "1.0"
...
}
// Add this block and enable/disable the parameters as follows
bundle {
density {
// Different APKs are generated for devices with different screen densities; true by default.
enableSplit true
}
abi {
// Different APKs are generated for devices with different CPU architectures; true by default.
enableSplit true
}
language {
// This is disabled so that the App Bundle does NOT split the APK for each language.
// We're gonna use the same APK for all languages.
enableSplit false
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.