How To Build Multiple APKs

Updated 15 January 2018

Save

Generally, we build a single APK to support all your target devices whenever possible, that might result in a very large APK due to files needed to support multiple screen density and Application Binary Interface (ABIs). But we can create multiple apks file that contains files for specific density or ABIs.

Configure your build for multiple APKs

To configure your build for multiple APKs, add a splits block to your module-level build.gradle file. Within the splits block, provide a density block that specifies how Gradle should generate per-density APKs, or an abi block that specifies how Gradle should generate per-ABI APKs.

Configure multiple APKs for ABIs

To create separate APKs for different ABIs, add an abi block inside your  splits block. In your abi block, provide a list of desired ABIs.

Ref:->https://developer.android.com/studio/build/configure-apk-splits.html#configure-split

author
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Start a Project


    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home