• 15

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

merging multiple apks from bundle into one

Is it possible to merge multiple apks generated through android app bundle into one single installable/distributable apk?

I have tried installing through adb install-multiple but in this manner, its not distributable.

Bundletool build-apks command has a --mode=universal flag which allows you to build a universal APK which contains everything.

It operates on the App Bundle though, not the generated APKs.

  • 1
Reply Report
      • 1
    • Although it solves the problem of getting installable apk, this still is not what I am looking for. What I am looking for is having apk for a specific device only i.e. for its abi and for its resolution.

Probably you used abi split . Just put universalApk true inside your split like following, you will get a single apk for all .

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.

            // 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
  • 0
Reply Report