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