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 /
avatar image
0
Question by Noxury · Aug 19, 2015 at 08:15 PM · sizefileapkbig

How to reduce apk size to its minimum?

Hey guys,

I am really shocked that my very basic arcade game which consists of 1 scene (Resources: 6 js and a player prefab, no textures, no imported assets/ All 256kb) all in 2D is on its Build 47.11 mb large.

I took a view into the actual app and saw that unity packs some sorts of libraries like libunity.so and libmono.so which take around 2/3 of the apk size.

Is it possible to reduce the libraries content or something that is not necessary?

I have also checked the stripping level to micro mscorblib and this reduced the app size to 45.44 mb. Lol not that much.

I am sure that there are apps that are around 5 mb large made with unity.

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

6 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by moriggi · Aug 20, 2015 at 10:53 PM

I think that is not possible that your project is so heavy for a 2d game. look at the audio and reduce the compression of music

Comment
Add comment · Show 1 · 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 Noxury · Aug 21, 2015 at 08:13 PM 0
Share

I have no music! All I have in the assets folder are 6 js and a player sprite!

avatar image
-1

Answer by KayaOcal · Aug 20, 2015 at 08:28 AM

You can decrese max size of your sprites. Click to sprite. You will see max size section on inspector. you can see the size of sprite on preview of sprite. if you decrese maxsize of sprite , you will see size of sprite will decrease.

Comment
Add comment · Show 1 · 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 Youri1er · Aug 20, 2015 at 08:59 AM 0
Share

Yes but he can't reduce anymore.

avatar image
-1

Answer by $$anonymous$$ · May 18, 2018 at 06:13 PM

okey thanks

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

Answer by Youri1er · Aug 20, 2015 at 07:42 AM

I think it's not possible...

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

Answer by Thorny2000 · Aug 21, 2015 at 02:09 AM

Start a new project and compile it to APK. I think you'll find it is about 15Mb. 47Mb for a game with just a few assets sounds very large. See how large your Assets folder is.

Tip: In the Project window, right click your scene file and select "export package". This will open the export window which lists all the files used in your scene. See if there is something there you didn't mean to include.

You can also reduce the size of sound samples - e.g. 44Mhz samples can be made 22Mhz or less. Music in MP3 format can be reduced to say 160kbps. Check your textures/sprites - if they are massive 2000 pixel wide textures consider how big they are onscreen in pixels on the average device. If reducing textures/sprite remember to look at the quality settings - low quality settings usually halve (or quarter) the texture size - you may want to adjust that.

Edit addition: Also - My current game project, 3D, lots of textures, lots of sound samples, music - is only a 32Mb APK (debug build).

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
  • 1
  • 2
  • ›

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

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

Related Questions

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

,HELP -- iOS Empty project exceeds iphone size limit ! 1 Answer

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

My build size randomly doubled Andriod 1 Answer

Size of apk too big 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