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 DoodleDangWang · Aug 11, 2018 at 02:36 AM · androidbuild

Absurd APK size after build

I'm on Unity 2018.1.8f1, trying for a first android build. My issue is an APK file hits 20+mb for an install around 90mbs, but the total resources I'm dealing with (that I can observe) is around 6mbs for this simple timer app. I've visited many of the pages on the topic, but the usual reduction of file sizes, change of stripping level, etc. don't really address this sort of bloat. Here is a snippet of the end of the log, hopefully someone can make heads or tails of this because I'm very stuck (let me know if you need more of it):

 ----------------
 Build Report
 Uncompressed usage by category:
 Textures      1.8 mb     2.1% 
 Meshes        0.0 kb     0.0% 
 Animations    0.0 kb     0.0% 
 Sounds        104.0 kb     0.1% 
 Shaders       0.0 kb     0.0% 
 Other Assets  3.2 kb     0.0% 
 Levels        115.2 kb     0.1% 
 Scripts       679.1 kb     0.8% 
 Included DLLs 3.9 mb     4.6% 
 File headers  9.2 kb     0.0% 
 Complete size 84.8 mb     100.0% 
 
 Used Assets and files from the Resources folder, sorted by uncompressed size:
  785.9 kb     0.9% Assets/Images/shneeeder_main2.png
  192.6 kb     0.2% Assets/Images/WhiteBox.png
  159.5 kb     0.2% Assets/Images/500_Chip.png
  155.5 kb     0.2% Assets/Images/1_Chip.png
  154.8 kb     0.2% Assets/Images/25_Chip.png
  154.0 kb     0.2% Assets/Images/5_Chip.png
  149.3 kb     0.2% Assets/Images/100_Chip.png
  49.5 kb     0.1% Assets/Images/WhiteBoxLong.png
  40.3 kb     0.0% Resources/unity_builtin_extra
  39.5 kb     0.0% Assets/Audio/1min_Warning.mp3
  37.5 kb     0.0% Assets/Audio/TimesUp.mp3
  26.9 kb     0.0% Assets/Audio/Start.mp3
  10.7 kb     0.0% Assets/Images/CheckBox_Yes.png
  10.7 kb     0.0% Assets/Images/CheckBox_No.png
  4.1 kb     0.0% C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll
  4.1 kb     0.0% C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/Standalone/UnityEngine.UI.dll
  1.8 kb     0.0% C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/Networking/UnityEngine.Networking.dll
  1.8 kb     0.0% C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/Networking/Standalone/UnityEngine.Networking.dll
  1.5 kb     0.0% C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/Timeline/RuntimeEditor/UnityEngine.Timeline.dll
  1.5 kb     0.0% C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/Timeline/Runtime/UnityEngine.Timeline.dll
  0.7 kb     0.0% C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityHoloLens/RuntimeEditor/UnityEngine.HoloLens.dll
  0.7 kb     0.0% C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityHoloLens/Runtime/UnityEngine.HoloLens.dll
  0.6 kb     0.0% C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityGoogleAudioSpatializer/RuntimeEditor/UnityEngine.GoogleAudioSpatializer.dll
  0.6 kb     0.0% C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityGoogleAudioSpatializer/Runtime/UnityEngine.GoogleAudioSpatializer.dll
  0.4 kb     0.0% C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/TestRunner/UnityEngine.TestRunner.dll
  0.3 kb     0.0% Packages/com.unity.analytics/UnityEngine.Analytics.dll
  0.3 kb     0.0% Packages/com.unity.ads/UnityEngine.Advertisements.dll
  0.1 kb     0.0% C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnitySpatialTracking/RuntimeEditor/UnityEngine.SpatialTracking.dll
  0.1 kb     0.0% C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnitySpatialTracking/Runtime/UnityEngine.SpatialTracking.dll
  0.1 kb     0.0% Assets/Code/ToggleOptions.cs
  0.1 kb     0.0% Assets/Code/TimerBehavior.cs
  0.1 kb     0.0% Assets/Code/StartingValues.cs
  0.1 kb     0.0% Assets/Code/GlobalSettings.cs
  0.1 kb     0.0% Assets/Code/AudVisObjects.cs
  0.1 kb     0.0% Assets/Code/VolumeSlider.cs
  0.1 kb     0.0% Assets/Code/StartTimer.cs
  0.1 kb     0.0% Assets/Code/RotateObject.cs
  0.1 kb     0.0% Assets/Code/GS_Switch.cs
  0.1 kb     0.0% Assets/Code/ChipImages.cs
  0.1 kb     0.0% Assets/Code/ActualTime.cs
  0.1 kb     0.0% Assets/Code/Quit.cs
 -------------------------------------------------------------------------------
 Unloading 24 Unused Serialized files (Serialized files now loaded: 0)
 System memory in use before: 133.8 MB.
 System memory in use after: 133.8 MB.
 
 Unloading 23 unused Assets to reduce memory usage. Loaded Objects now: 3129.
 Total: 16.077024 ms (FindLiveObjects: 1.346764 ms CreateObjectMapping: 0.046617 ms MarkObjects: 14.400383 ms  DeleteObjects: 0.282073 ms)
 
 DisplayProgressNotification: Build Successful
 Load scene 'Temp/__Backupscenes/0.backup' time: 0.058469 ms 
 Unloading 14 Unused Serialized files (Serialized files now loaded: 0)
 System memory in use before: 136.8 MB.
 System memory in use after: 137.1 MB.
 
 Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 3835.
 Total: 13.513470 ms (FindLiveObjects: 1.044147 ms CreateObjectMapping: 0.030814 ms MarkObjects: 12.429027 ms  DeleteObjects: 0.008296 ms)
 
 
 *** Completed 'Build.Player.AndroidPlayer' in 103 seconds (103020 ms)
 
 Build completed with a result of 'Succeeded'
 UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
 UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
 UnityEngine.Logger:Log(LogType, Object)
 UnityEngine.Debug:Log(Object)
 UnityEditor.DefaultBuildMethods:BuildPlayer(BuildPlayerOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:184)
 UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:89)
 UnityEditor.BuildPlayerWindow:GUIBuildButtons(IBuildWindowExtension, Boolean, Boolean, Boolean, BuildPlatform) (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:885)
 UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings() (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:810)
 UnityEditor.BuildPlayerWindow:OnGUI() (at C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindow.cs:415)
 System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
 System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
 System.Reflection.MethodBase:Invoke(Object, Object[]) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
 UnityEditor.HostView:Invoke(String, Object) (at C:\buildslave\unity\build\Editor\Mono\HostView.cs:291)
 UnityEditor.HostView:Invoke(String) (at C:\buildslave\unity\build\Editor\Mono\HostView.cs:284)
 UnityEditor.HostView:OldOnGUI() (at C:\buildslave\unity\build\Editor\Mono\HostView.cs:103)
 UnityEngine.Experimental.UIElements.IMGUIContainer:DoOnGUI(Event) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:212)
 UnityEngine.Experimental.UIElements.IMGUIContainer:HandleIMGUIEvent(Event) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:372)
 UnityEngine.Experimental.UIElements.IMGUIContainer:HandleEvent(EventBase) (at C:\buildslave\unity\build\Modules\UIElements\IMGUIContainer.cs:356)
 UnityEngine.Experimental.UIElements.EventDispatcher:DispatchEvent(EventBase, IPanel) (at C:\buildslave\unity\build\Modules\UIElements\EventDispatcher.cs:215)
 UnityEngine.Experimental.UIElements.UIElementsUtility:DoDispatch(BaseVisualElementPanel) (at C:\buildslave\unity\build\Modules\UIElements\UIElementsUtility.cs:224)
 UnityEngine.Experimental.UIElements.UIElementsUtility:ProcessEvent(Int32, IntPtr) (at C:\buildslave\unity\build\Modules\UIElements\UIElementsUtility.cs:77)
 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:\buildslave\unity\build\Modules\IMGUI\GUIUtility.cs:184)
  
 (Filename: /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs Line: 222)
 
 - Starting compile Library/ScriptAssemblies/Unity.PackageManagerUI.Editor.dll
 - Starting compile Library/ScriptAssemblies/UnityEditor.StandardEvents.dll
 - Finished compile Library/ScriptAssemblies/UnityEditor.StandardEvents.dll
 - Finished compile Library/ScriptAssemblies/Unity.PackageManagerUI.Editor.dll
 - Starting compile Library/ScriptAssemblies/Assembly-CSharp.dll
 - Finished compile Library/ScriptAssemblies/Assembly-CSharp.dll
 Symbols will be read from Temp\Assembly-CSharp.dll.mdb
 Script Module: Assembly-CSharp.dll
 Pass: 0 took 9 milliseconds
 Pass: 1 took 45 milliseconds
 Reloading assemblies after finishing script compilation.
 Begin MonoManager ReloadAssembly
 Refreshing native plugins compatible for Editor in 2.85 ms, found 5 plugins.
 Preloading 3 native plugins for Editor in 0.80 ms.
 Mono: successfully reloaded assembly
 Refreshing native plugins compatible for Editor in 1.27 ms, found 5 plugins.
 Preloading 3 native plugins for Editor in 1.24 ms.
 
 ----- Total AssetImport time: 0.192475s, AssetImport time: 0.000000s, Asset hashing: 0.000000s [0 B, 0.000000 mb/s]
 
 - Completed reload, in  2.592 seconds
 Initializing Unity.PackageManager (PackageManager) v2018.1.8 for Unity v2018.1.8f1
 Registering platform support modules:
 Registered platform support modules in: 0.0870992s.
 Native extension for WindowsStandalone target not found
 Native extension for Android target not found
 Refresh: detecting if any assets need to be imported or removed ... Refresh: elapses 0.065406 seconds (Nothing changed)
 Refresh completed in 0.065555 seconds.
  
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 DoodleDangWang · Aug 10, 2018 at 01:39 PM 0
Share

I built a blank project (empty) and it ends with a 20.4mb AP$$anonymous$$ for 79mb install. Unless this is the normal file sizes of Unity projects and I just didn't know, the problem resides with the build setup. I browsed a setup video on Youtube and it appears the default settings are fine, but this doesn't look to be an issue with my original project at all. As I observe other Apps on my phone can be under 5mbs, I'm interested in how to achieve this, if possible, with Unity.

avatar image DoodleDangWang · Aug 10, 2018 at 03:35 PM 0
Share

Alright, I did manage to discover a Forum discussion on the topic here: [link text][1]https://forum.unity.com/threads/apk-size-of-empty-scene-is-20mb-after-installation-on-phone-its-62mb.453297/

I was able to cut my program down to 48mbs after unpacking by turning off x86, but still, this is a timer program, that's still an absurd size for what this is. $$anonymous$$y point of reference is observing clearly more complex programs at smaller size. This app will be free, but if I were to compete with the other timers on the market place, the couple I have tried were south of 10mbs. Is there anything I can do besides rolling back to Unity 4.7 as the last post in my link suggests to reduce install size?

0 Replies

· Add your reply
  • Sort: 

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

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

Related Questions

Distribute terrain in zones 3 Answers

Cannot build for Android (Failed to Move File) 1 Answer

Android build to share to other devices and to upload on itch.io 0 Answers

Put all Assets in Resources Folder ? 1 Answer

video-audio not playing in build (i tried webgl and android) 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