Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
This question was closed Sep 29, 2017 at 02:59 PM by whaleinthesea for the following reason:

Problem is not reproducible or outdated

avatar image
0
Question by whaleinthesea · Aug 31, 2015 at 06:24 PM · sizeapkbighugemb

How to decrease apk size(on device) to around 10mb?

I have made a game with Unity and the apk size is around 10mb, but on the phone it is 30mb and I only have 2 scenes, 16 small scripts, 1 material, 1 prefab, and 1 physic material. If I go to the assets folder in explorer I see the assets only are 122kb, so why do I have an apk file of 10mb???(on another account I have Unity Pro and Android Pro and I have put stripping level to micro mscorlib and the device filter to ARmv7 so that could not be the reason) And how can I decrease the size to around 5mb.

Oh, and btw the apk size itself is not the problem but the problem is that the size on the phone is 30mb, that's too much for a simple 3d game!

This is a part of editor.log(for some reasons I changed the names):

 Textures      0.0 kb     0.0% 
 Meshes        0.0 kb     0.0% 
 Animations    0.0 kb     0.0% 
 Sounds        0.0 kb     0.0% 
 Shaders       423.0 kb     8.9% 
 Other Assets  1.7 kb     0.0% 
 Levels        82.5 kb     1.7% 
 Scripts       189.7 kb     4.0% 
 Included DLLs 3.9 mb     85.1% 
 File headers  8.5 kb     0.2% 
 Complete size 4.6 mb     100.0% 
 
 Used Assets, sorted by uncompressed size:
  424.1 kb     9.0% Resources/unity_builtin_extra
  3.8 kb     0.1% C:/Program Files/unity/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll
  0.4 kb     0.0% Assets/Cube.prefab
  0.1 kb     0.0% Assets/Scripts/script1.cs
  0.1 kb     0.0% Assets/Scripts/script2.cs
  0.1 kb     0.0% Assets/Scripts/script3.cs
  0.1 kb     0.0% Assets/Scripts/script4.cs
  0.1 kb     0.0% Assets/Scripts/script5.cs
  0.1 kb     0.0% Assets/Scripts/script6.cs
  0.1 kb     0.0% Assets/Scripts/script7.cs
  0.1 kb     0.0% Assets/Scripts/script8.cs
  0.1 kb     0.0% Assets/Scripts/script9.cs
  0.1 kb     0.0% Assets/Scripts/script10.cs
  0.1 kb     0.0% Assets/Scripts/script11.cs
  0.1 kb     0.0% Assets/Scripts/script12.cs
  0.1 kb     0.0% Assets/Scripts/script13.cs
  0.1 kb     0.0% Assets/Scripts/script14.cs
  0.1 kb     0.0% Assets/Scripts/script15.cs
  0.1 kb     0.0% Assets/Scripts/script16.cs
  0.1 kb     0.0% Assets/Bouncy.physicMaterial

Thanks in advance!

Comment
Add comment
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

1 Reply

  • Sort: 
avatar image
1

Answer by DoTA_KAMIKADzE · Aug 31, 2015 at 07:57 PM

Unless you want to buy Unity's source code license I don't think it will be possible even in the nearest future to get as low as 5mb only. For more details on that part you can read my comment THERE.

Why the size of actual installation differs from apk size? It is a pretty simple question - because apk is basically just packed-up archive, you can use something like for example 7zip to unpack it and view what it actually contains and how much that stuff weight.

Why it is that heavy? Well if you'll unpack and check it out you'll understand yourself - it brings all used Unity Engine dlls and mono runtime with itself, so even an empty project will be over your required 5/10mb.

Comment
Add comment · 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

Follow this Question

Answers Answers and Comments

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

Related Questions

Size of apk too big 1 Answer

Why is my iOS app so much bigger than what is shown in the editor log? 1 Answer

Why does unity change the APK file size after build? 1 Answer

How to reduce apk size to its minimum? 6 Answers

Small game, huge size? 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