Unity Build Size suddenly increased dramatically.

Hello, I have a problem. I previously build an Android build that was at ~60MB. Now it is ~160MB.

The steps that occurred;

  1. The project was on Android build and I did a build a couple of days ago at ~60MB.
  2. I changed build settings to Windows build
  3. I deleted some scripts that were causing an error to make the Windows Build.
  4. I built the Windows build.
  5. I changed the build settings from Windows back to Android build.
  6. I did an Android build and the APK file was ~160MB.

I used a backup from a week back and did an Android build and it was the same ~60MB.
I did a build with both and copied the Editor Log. This is a build WITHOUT any scenes added in. Therefore, no images, etc. to deviate the build sizes.

I am really confused. As it was fine before the change in build. What can do to fix this?

The 60MB build shows this:
Build Report
Uncompressed usage by category (Percentages based on user generated assets only):
Textures 8.0 mb 29.4%
Meshes 0.0 kb 0.0%
Animations 0.0 kb 0.0%
Sounds 56.7 kb 0.2%
Shaders 275.0 kb 1.0%
Other Assets 560.0 kb 2.0%
Levels 8.9 kb 0.0%
Scripts 4.7 mb 17.1%
Included DLLs 13.3 mb 48.8%
File headers 409.1 kb 1.5%
Total User Assets 27.3 mb 100.0%
Complete build size 188.8 mb

The 160MB build shows this:
Build Report
Uncompressed usage by category (Percentages based on user generated assets only):
Textures 8.0 mb 29.4%
Meshes 0.0 kb 0.0%
Animations 0.0 kb 0.0%
Sounds 56.7 kb 0.2%
Shaders 275.0 kb 1.0%
Other Assets 560.1 kb 2.0%
Levels 9.1 kb 0.0%
Scripts 4.7 mb 17.1%
Included DLLs 13.3 mb 48.8%
File headers 409.0 kb 1.5%
Total User Assets 27.3 mb 100.0%
Complete build size 371.8 mb

UPDATE: So, I explored the APK file and inside of Assets folder it had my bundles inside of it. I got rid of them and my file size was reduced well below 60MB.

This is SOLVED.

3 Likes