androidandroid-bundle

android bundle size much bigger than in universal apk


When I built universal apk it size was 170mb. After I implemented extension files (due to the large asset folder) I have to build bundles. But the bundle size is much bigger - 283mb. Uppon unzipping aab file I see, that just lib folder weights 150mb. And includes extra architectures which are not present in config (like mips)

  splits {
    abi {
      enable true
      reset()
      include 'x86', 'armeabi-v7a', 'arm64-v8a'
      universalApk false
    }
  }

Thre is split of folder sizes, where libraries ar emostly c++ libs.

enter image description here What can be done to mitigate such increase as playmarket only accept bundle with 150mb and lower (not including asset-delivery size)


Solution

  • App Bundle size is not a direct indication of how big it will be the download for the users. Also the 150MB limit is the compressed download size limit.

    You should upload your App Bundle and use Play Console's App Bundle Explorer to double check the size of the downloads.
    Google Play Store implements many optimizations to reduce downloads when it delivers application from and Android App Bundle.

    You can find more information in the documentation: https://d.android.com/appbundle