Skip to content

Instantly share code, notes, and snippets.

@NickJian
Last active May 23, 2017 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NickJian/a4e5a6dde064052fc20546658870e724 to your computer and use it in GitHub Desktop.
Save NickJian/a4e5a6dde064052fc20546658870e724 to your computer and use it in GitHub Desktop.
split apk
splits {
abi {
// Enables building multiple APKs per ABI only when build with property
enable project.hasProperty('splitApks')
reset()
// Resets the list of ABIs that Gradle should create APKs for to none.
// Specifies a list of ABIs that Gradle should create APKs for.
      include "armeabi-v7a", "arm64-v8a", "x86"
       
// You can set this param to false if you donot need a universal apk.
// However, having a universal apk could help when you need to send apk by mail.
universalApk true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment