Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
177 views
in Technique[技术] by (71.8m points)

Android bundle's raw file size is something weird

enter image description here

The final aab file size is about 73MB, but the android studio estimate as 28MB. What is the matter?

question from:https://stackoverflow.com/questions/65516979/android-bundles-raw-file-size-is-something-weird

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

What you are seeing is perfectly normal.

Raw file size is the total size of the files together in the App Bundle that you will upload to the Play Console.

Google Play then optimises the App Bundle to generate Apks for different device configurations. E.g. pixel density, language etc.

Google Play uses your app bundle to generate and serve optimized APKs for each device configuration, so only the code and resources that are needed for a specific device are downloaded to run your app. You no longer have to build, sign, and manage multiple APKs to optimize support for different devices, and users get smaller, more-optimized downloads.3

This means that the user will receive only the resources their device needs, which results in the lower app download size.

More information: https://developer.android.com/guide/app-bundle


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...