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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note:
We started using memory advice library which takes some space. Other increases look minor.