Announcement

Collapse
No announcement yet.

4.26 Android Package APK file is so huge

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    4.26 Android Package APK file is so huge

    I got an issue with the 4.26 Android APK package, my project has 70 megabytes but APK is hudge 273 megabytes.
    Why it's so huge for mobile in 4.26? Also sometimes i got crushes on Open Level node. All levels included in package, save data in APK and compressed package.

    Click image for larger version  Name:	33333.JPG Views:	0 Size:	155.2 KB ID:	1839317
    Last edited by Augbrite; 12-04-2020, 06:53 PM.

    #2
    Same issue here - a 70mb APK on 4.25 is now over 230mb. OBB size is unchanged. This shouldn't have hit production - how long until we have a fix? Anyone know how to even go about tracking this down? It's crickets around the community on resolution.

    Comment


      #3
      Originally posted by Schmutza View Post
      Same issue here - a 70mb APK on 4.25 is now over 230mb. OBB size is unchanged. This shouldn't have hit production - how long until we have a fix? Anyone know how to even go about tracking this down? It's crickets around the community on resolution.
      I don't know and i will stay on the 4.25 coz it's stable and much less megabytes. I Hope Epics will fix that but for now, i don't want to use huge apks and crushes on OpenLevel node..

      Comment


        #4
        Yeah, I've done a bunch of porting work with a custom engine build. So I'll need to undo it all to redo later. There should be unit tests catching regressions like these - there's really no excuse for them getting through.

        Comment


          #5
          So, I managed to somewhat track down the cause. There's clearly things which have changed in the way gradle handles things between versions that impact this.

          In the commit d22fb4bcce5925d29f36ba83e3c33e25055a5785 on 11/16/2020 at 3:15:33pm, the gradle version was changed on line 25 to 4.0.0 in Engine/Source/Programs/UnrealBuildTool/Platform/Android/UEDeployAndroid.cs

          When building with this change in version, what gets linked into libUE4.so (and likely other aspects) is changed significantly. While it builds, it seems no testing was done for the impact on the rest of the process, as if you just go in to this file and change it back to 3.5.3 then you will get build sizes around what you had in 4.25.

          I'm using a source build, but that file is in the packaged build in source form, so you should just be able to open it up and edit it to get things sorted while using 4.26 until it's properly addressed.

          Comment


            #6
            Originally posted by Augbrite View Post

            I don't know and i will stay on the 4.25 coz it's stable and much less megabytes. I Hope Epics will fix that but for now, i don't want to use huge apks and crushes on OpenLevel node..
            Have same problem!!! When fix this, Epic? The worst thing is that Open Level is crashed game on mobile((((!!!!!!
            Last edited by vova5697; 12-06-2020, 05:17 AM.

            Comment


              #7
              Same, huge APK. Unfortunately I`m forced to use Unity.

              Comment


                #8
                Vova and Nire, check post #5, I put up details to fix this there.

                Comment


                  #9
                  Originally posted by Schmutza View Post
                  Vova and Nire, check post #5, I put up details to fix this there.
                  Huge Apk is not problem for me. Crashed when use Open level on android is huge problem for me!!!

                  Comment


                    #10
                    Same issue here. APK size suddenly exploded in size. After inspecting the apk`s in Android Studio, the "libUE3.so" is clearly the main offender, so hopefully this will be fixed asap.


                    Before update :

                    Click image for larger version

Name:	before.png
Views:	201
Size:	107.2 KB
ID:	1840152


                    After update :

                    Click image for larger version  Name:	after.png Views:	0 Size:	103.1 KB ID:	1840148
                    Attached Files
                    Last edited by brokenpoly; 12-07-2020, 08:26 AM.
                    "Fast, fat computers breed slow, lazy programmers."

                    Comment


                      #11
                      Schmutza friend , please provide us solution for build size.

                      Comment


                        #12
                        Hello everyone!
                        I've found a solution: open Config/DefaultEngine.ini and remove MinSDKVersion key in AndroidRuntimeSettings section. This solution may be the first step for further investigation, but it works

                        Comment


                          #13
                          Originally posted by Umkerius View Post
                          Hello everyone!
                          I've found a solution: open Config/DefaultEngine.ini and remove MinSDKVersion key in AndroidRuntimeSettings section. This solution may be the first step for further investigation, but it works
                          This works! I should also add that setting it to 21 also works and it's a better solution. Thanks!

                          Comment

                          Working...
                          X