Skip to content

Instantly share code, notes, and snippets.

@igorwojda
Last active August 29, 2020 07:59
Show Gist options
  • Save igorwojda/ac461fb41ffed579fbf5584c5c0a94f4 to your computer and use it in GitHub Desktop.
Save igorwojda/ac461fb41ffed579fbf5584c5c0a94f4 to your computer and use it in GitHub Desktop.
Configure apk split
android {
splits {
// Configures multiple APKs based on ABI.
abi {
// Enables building multiple APKs per ABI.
enable true
// By default all ABIs are included, so use reset() and include to specify that we only
// want APKs for x86, armeabi-v7a, and mips.
reset()
// Specifies a list of ABIs that Gradle should create APKs for.
include "x86", "x86_64", "armeabi-v7a", "arm64-v8a"
// Specifies that we want to also generate a universal APK that includes all ABIs.
universalApk true
}
}
//...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment