Search Issue Tracker
By Design
Votes
0
Found in
2023.1.0b11
2023.2.0a10
Issue ID
UUM-34048
Regression
Yes
[Android] APK size increases when built with 2023.X
Reproduction steps:
1. Open the attached project "ReproProj" with the Android Platform
2. Go to File > Build Settings and press “Build”
3. Locate the built APK in file explorer
4. Observe the size of the APK file
Expected result: The size of APK does not increase
Actual result: The size of APK increases by about 1,200 KB
Reproducible with: 2023.1.0a11, 2023.1.0b11, 2023.2.0a10
Not reproducible with: 2020.3.47f1, 2021.3.22f1, 2022.2.14f1, 2023.1.0a10
Testing environment: Windows 10 Enterprise 21H2
Notes:
- libunity.so increased by ~ 1 MB
- libil2cpp.so decreased by ~ 0.3 MB
- unity default resources increased by ~ 484 KB
- Size results of built APKs:
Version | Size
2020.3.47f1 | 6,788 KB
2021.3.22f1 | 6,890 KB
2022.2.14f1 | 6,715 KB
2023.1.0b11 | 7,896 KB
2023.2.0a10 | 7,922 KB
Comments (1)
-
fejuto
Apr 25, 2023 18:47
Is there a way to disable the usage of Memory Advice Library?
We're targeting Google Play Instant, which has a 15MB build size limit. So every KB counts! This 1MB+ increase will prevent us from upgrading Unity.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note:
We started using memory advice library which takes some space. Other increases look minor.