简体   繁体   中英

Android App Bundle: Google Play 150MB limit seems to include the Dynamic Feature Module size?

Scenario: I have an app with a lot of high res drawable images. I would like to deliver those assets with the build as opposed to via web/http/cdn.

Problem: When uploading my .aab to google, I'm told that certain configurations will result in a build over the 150MB limit. Google Play 150MB 错误

What I've tried:

  • I've extracted most of the large images to an install-time Dynamic Feature Module.
  • Using bundletool, I've simulated an xxxhdpi device on arm64 with two languages. The resulting base apks do not exceed 150MB. The Dynamic Feature Module apks ("packimages-*.apk") do, but as far as I can tell, that's not only ok, but that is Google's recommended way of reducing base apk size. 在此处输入图片说明

The limit on 150 MB is on the download size at installation time.

Since you mentioned that you configured the dynamic features to be "install-time", they will also be served at installation time and are thus counted towards the limit.

You may want to consider images that are needed at installation time (which you can leave in the base module) and images that can be downloaded at a later time (which you can put in an on-demand module) using the Play Core SDK .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM