Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Size and naming of Android.apk
Forum Updated to NodeBB v4.3 + New Features

Size and naming of Android.apk

Scheduled Pinned Locked Moved Solved Mobile and Embedded
androidandroid size
8 Posts 4 Posters 3.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    koahnig
    wrote on last edited by
    #1

    Creating an application for Android ends with application size of 7.2 MB plus. also for a simple hello world app.

    Strangely also for release compilations the naming is always "android-build-debug.apk"
    However, the debug compilation of application doesincrease the size slightly by about 200 kB.

    Is this typical or a problem with my installation?

    Running on Win 10 64bit. Qt 5.9 and API level 17 for Android.

    Vote the answer(s) that helped you to solve your issue(s)

    E 1 Reply Last reply
    0
    • K koahnig

      Creating an application for Android ends with application size of 7.2 MB plus. also for a simple hello world app.

      Strangely also for release compilations the naming is always "android-build-debug.apk"
      However, the debug compilation of application doesincrease the size slightly by about 200 kB.

      Is this typical or a problem with my installation?

      Running on Win 10 64bit. Qt 5.9 and API level 17 for Android.

      E Offline
      E Offline
      Eeli K
      wrote on last edited by
      #2

      @koahnig 7.2M sounds small. IIRC our small QML app .apk size is ~11M and the installed application takes about 30 or 40M. It includes the relevant parts of Qt binaries, after all. The naming thing is a bug in the Qt's Android build system IMO. You just have to rename it manually when you want to distribute it, I don't see any big problems with that, the file name won't affect anything in the installed app. The debug version is naturally bigger. I don't think there's anything wrong with your installation.

      1 Reply Last reply
      2
      • K Offline
        K Offline
        koahnig
        wrote on last edited by
        #3

        Thanks for reply.

        I have checked and compared the files on the shadow for release and debug android-build\libs\armeabi-v7a they are of identical size and only the file associated with application has different size and reflects the increase of size for the debug version.

        Vote the answer(s) that helped you to solve your issue(s)

        E 1 Reply Last reply
        0
        • K koahnig

          Thanks for reply.

          I have checked and compared the files on the shadow for release and debug android-build\libs\armeabi-v7a they are of identical size and only the file associated with application has different size and reflects the increase of size for the debug version.

          E Offline
          E Offline
          Eeli K
          wrote on last edited by
          #4

          @koahnig You can peek inside the .apk files (it's basically a zip file) and compare them piece by piece. AFAIK Linux (which Android is) usually uses separate debug info files, not special .so files which would be linked with the debug build. It's unlike Windows where there are two .dll files. See e.g. https://stackoverflow.com/questions/866721/how-to-generate-gcc-debug-symbol-outside-the-build-target. I don't know if it's relevant or how the two builds actually should be different.

          K 1 Reply Last reply
          1
          • E Eeli K

            @koahnig You can peek inside the .apk files (it's basically a zip file) and compare them piece by piece. AFAIK Linux (which Android is) usually uses separate debug info files, not special .so files which would be linked with the debug build. It's unlike Windows where there are two .dll files. See e.g. https://stackoverflow.com/questions/866721/how-to-generate-gcc-debug-symbol-outside-the-build-target. I don't know if it's relevant or how the two builds actually should be different.

            K Offline
            K Offline
            koahnig
            wrote on last edited by
            #5

            @Eeli-K

            Thanks for the hint with .apk file.

            Vote the answer(s) that helped you to solve your issue(s)

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kuzulis
              Qt Champions 2020
              wrote on last edited by
              #6

              Strangely also for release compilations the naming is always "android-build-debug.apk"

              It automatically renames to "*-release-signed.apk" when you select signing of package option (need to configure keystore).

              1 Reply Last reply
              0
              • J Offline
                J Offline
                Jonathan John
                Banned
                wrote on last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  Jonathan John
                  Banned
                  wrote on last edited by
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved