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
0
Question by luniac · Mar 21, 2015 at 05:18 PM · buildapk

apk size doesn't make sense with editor log

I build an apk for android, my editor log says:

 Textures      6.8 mb     44.1% 
 Meshes        0.0 kb     0.0% 
 Animations    30.6 kb     0.2% 
 Sounds        1.4 kb     0.0% 
 Shaders       2.4 mb     15.7% 
 Other Assets  917.7 kb     5.8% 
 Levels        106.9 kb     0.7% 
 Scripts       1.0 mb     6.5% 
 Included DLLs 4.1 mb     26.3% 
 File headers  116.2 kb     0.7% 
 Complete size 15.5 mb     100.0% 


but the .apk file is 32mb, and the install size is 60mb... what's going on over here??

Comment
Add comment · Show 3
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 tigertrussell · Mar 21, 2015 at 05:34 PM 0
Share

Where do you see this!? I saw that this was a thing a while ago but have never been able to find it.

avatar image luniac · Mar 21, 2015 at 06:09 PM 1
Share

unity editor log, go to editor console and in the upper right corner you click and click editor log

avatar image tigertrussell · Mar 21, 2015 at 06:22 PM 0
Share

noh my god thank you

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by tanoshimi · Mar 21, 2015 at 08:23 PM

The build size reported in the editor log doesn't include any assets in the /resources folder, or audio streamed from disk, or the actual .DLL files required by the Unity runtime itself etc.

To see what actually takes up the room in a .apk file, simply rename it to .zip and then extract the contents.

Comment
Add comment · Show 4 · 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 luniac · Mar 21, 2015 at 08:34 PM 0
Share

lol extracting it doesn't help, there aren't any individual asset files.

Are you sure /resources files don't get included? I have this in my editor log for example:

 Used Assets, sorted by uncompressed size:
  2.7 mb     17.2% assets/plugins/textmesh pro/resources/Sprites/Default Sprite Atlas.psd
  2.0 mb     12.9% Built-in Texture2D: SpriteAtlasTexture-game (Group 0)-1024x1024-fmt13
  1.0 mb     6.5% assets/plugins/textmesh pro/resources/Fonts & $$anonymous$$aterials/ARIAL SDF.asset
  765.9 kb     4.8% assets/plugins/textmesh pro/resources/Shaders/T$$anonymous$$Pro_SDF.shader
  763.3 kb     4.8% assets/plugins/textmesh pro/Fonts/ARIAL.TTF
  733.3 kb     4.6% assets/plugins/textmesh pro/resources/Shaders/T$$anonymous$$Pro_SDF Overlay.shader
  652.1 kb     4.1% assets/_turret_game/_splashscreen/Textures/IAGG Logo.png
  461.1 kb     2.9% assets/_turret_game/_splashscreen/Textures/2.2 Logo.png
  412.9 kb     2.6% assets/plugins/textmesh pro/resources/Shaders/T$$anonymous$$Pro_SDF-Surface.shader
  186.5 kb     1.2% assets/glow effect/Glow/GlowReplace.shader
  115.8 kb     0.7% assets/plugins/textmesh pro/resources/Shaders/T$$anonymous$$Pro_SDF-$$anonymous$$obile.shader
  115.5 kb     0.7% assets/plugins/textmesh pro/resources/Shaders/T$$anonymous$$Pro_SDF-$$anonymous$$obile Overlay.shader
  102.1 kb     0.6% assets/plugins/textmesh pro/resources/Shaders/T$$anonymous$$Pro_SDF-Surface-$$anonymous$$obile.shader
  46.9 kb     0.3% assets/_turret_game/_game/sprites/GA$$anonymous$$E/sprites_main.png
  42.7 kb     0.3% assets/touchscript/Textures/Touch.png



it keeps going but as you can see /reseource files are counted. Interesting regarding the audio though.... WTF why do we have to deal with this crap man...

avatar image PuzzleMaster1967 · Sep 04, 2015 at 11:49 PM 0
Share

I got the same issue. $$anonymous$$y editor log shows my app is 10 $$anonymous$$B but the build is 90 $$anonymous$$B. The editor log used to list all the assets including the assets under the Resources folder. but somehow it's not doing that now. I wonder are the assets show up in your editor log references in your scenes so they show up. I will run a few tests and see what happened.

Since all assets under the resources folder are included in the build, it will be better if they show up in the build log no matter they are referenced or not.

avatar image TNSTstudios2015 · Sep 05, 2015 at 01:15 AM 0
Share

This shouldn't be an issue, It always works for me. I mean, both of you guys are having the same problem - I'm not! Search up on google for more info :)

avatar image Bunny83 · Sep 05, 2015 at 09:46 AM 0
Share

@Puzzle$$anonymous$$aster1967
@TNSTstudios2015

Please don't post such "comments" as answers. This is not a forum to chat. Answers always have to address and answer the actual problem in the question at the top.

@Puzzle$$anonymous$$aster1967:
Your main issue is that you expect that log to show different information than what it does. It's simply a listing of used assets. That listing should help you finding assets you accidentally referenced somewhere. At no point does it say: "final build size". How large a build is once it's built can be figured out by actually looking at the built file(s).

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

24 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Distribute terrain in zones 3 Answers

Cant build android APK after Firebase integration 0 Answers

Unity ads works on editor but not in device 0 Answers

Build apk size depends on resource size. 0 Answers

OSX Mountain Lion: CommandInvokationError: Failed to build apk. 1 Answer


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