Search Issue Tracker
By Design
By Design in 2023.1.X
Votes
0
Found in
2021.3.12f1
2022.1.21f1
2022.2.0b12
2023.1.0a16
Issue ID
UUM-17527
Regression
Yes
[Android] Size of a built project is higher in comparison with other Unity versions
How to reproduce:
1. Open the user’s attached “ProjectTest” project
2. Set the “Scripting Backend” to IL2CPP and “Compression Method” to LZ4HC
3. Build the “SampleScene” Scene for Android
4. Observe the built “apk” size
Expected result: Size is 7.9 - 8 MB and not more
Actual result: Size is more than 8 MB
Reproducible with: 2021.2.0a7, 2021.3.12f1, 2022.1.21f1, 2022.2.0b12, 2023.1.0a16
Not reproducible with: 2020.3.41f1, 2021.2.0a6
Reproduced on: macOS 12.6 (Intel)
Note:
- It seems that it doesn’t differ which SB nor CM was selected for the build
since the size also varies with “Mono” SB and other CMs. However, the customer
asks to test with the chosen settings as in the 2nd step, and it builds faster
- Even though 0.8 MB may not be seen as a huge difference, the larger a project is,
the larger the apk file. According to the customer, their build size increases by 20 MB.
Another user from the forum thread below stated that after the update “apk” size increased from 1 GB to 3 GB
- https://unity.slack.com/archives/C0147DRQFSR/p1667997355675089
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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Resolution Note:
Size change is by design because Vulkan/SPIR-V are known to be larger than OpenGLES3. Upgrading the project leaving OpenGL3 as graphics API keeps the same executable size.
Resolution Note (2023.1.X):
Size change is by design because Vulkan/SPIR-V are known to be larger than OpenGLES3. Upgrading the project leaving OpenGL3 as graphics API keeps the same executable size.