Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by bigbazwa · Jun 18, 2013 at 05:26 PM · androidbuildapk

Why is my build file size so big?

I am using Unity 3.5.6f4 and building to Android. The final apk size is 66.5 MB, yet in the editor log, it is showing a complete size of only 30.8 MB:

Textures 22.2 mb 72.2%

Meshes 280.8 kb 0.9%

Animations 0.0 kb 0.0%

Sounds 1.7 mb 5.5%

Shaders 89.7 kb 0.3%

Other Assets 1.9 mb 6.1%

Levels 294.7 kb 0.9%

Scripts 205.6 kb 0.7%

Included DLLs 3.8 mb 12.3%

File headers 317.0 kb 1.0%

Complete size 30.8 mb 100.0%

What could be causing the file size to be more than twice the size it says in the editor log?

For comparison, my last project had a complete size of 325 MB, yet the apk was only 24.MB. Why the huge discrepancy?

Thanks for your help!

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image DannyB · Jun 18, 2013 at 06:32 PM 0
Share

I am experiencing the same thing for iOS. $$anonymous$$y question was left unanswered.

avatar image whydoidoit · Jun 18, 2013 at 07:39 PM 0
Share

On iOS your .ipa size of AppStore takes into consideration the uncompressed size of your .app (the executable) which has DR$$anonymous$$ applied before compression, basically rendering it uncompressable. $$anonymous$$ine for instance is 37mb - thanks mostly to Unity and Scaleform.

1 Reply

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by whydoidoit · Jun 18, 2013 at 07:35 PM

Well Unity itself takes a decent amount of space - depends on whether you have Pro and Bytecode stripping turned on etc - if not then the cost of the .NET libraries you use plus any native plugins will be added to that size in their entirety, otherwise some code will be removed. In addition there will be the size of your splash screens etc and all of your streaming assets.

Comment
Add comment · Show 8 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image whydoidoit · Jun 18, 2013 at 07:42 PM 1
Share

And actually it's pretty easy to see what's taking all the space, rename the .apk to .zip and unzip it!

On iOS rename the .ipa to .zip and unzip it. Then do Show Package Contents on the resulting expanded archive file.

avatar image DannyB · Jun 18, 2013 at 07:45 PM 0
Share

Thanks. Will check it.

avatar image bigbazwa · Jun 18, 2013 at 08:20 PM 0
Share

Thanks, I figured out my problem based on this. I had several music tracks that were set to stream from disk that weren't included in the total size. Once I compressed those, my apk went from 66.5 $$anonymous$$B to 23 $$anonymous$$B.

avatar image whydoidoit · Jun 18, 2013 at 08:23 PM 0
Share

That's good for other reasons - those things kill memory on the phone where they appear to not actually really stream from anything! I found that out recently myself when running out of RA$$anonymous$$.

avatar image DannyB · Jun 18, 2013 at 08:26 PM 0
Share

So you are saying not stream from disk? I also have some music tracks set to stream...

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

16 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity APK crash on Xiaomi Poco 0 Answers

Failed to re-package resources. 16 Answers

Empty Android Build contains more dlls. 0 Answers

Problem with building apk file for android 0 Answers

Error During "Building DEX" (Unity 4.1.2f1) 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges