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. What is android_rcc_bundle.rcc ? Is there a way to reduce its size?

What is android_rcc_bundle.rcc ? Is there a way to reduce its size?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
androidgradleapk
5 Posts 2 Posters 1.0k Views
  • 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.
  • D Offline
    D Offline
    Dmitriano
    wrote on 9 Dec 2021, 07:37 last edited by Dmitriano 12 Sept 2021, 07:38
    #1

    When I build my app for Android with QT 6.2.2 I get APK of 148M size that contains uncompressed file android_rcc_bundle.rcc of 118M size.

    What is it? Is there a way to reduce its size?

    As far as I can guess it is something related to

        // Do not compress Qt binary resources file
        aaptOptions {
            noCompress 'rcc'
        }
    

    in build.gradle.

    If my guess is correct, why is not it compressed?

    See my blog post for information on how I built a QT version for Android.

    J D 3 Replies Last reply 9 Dec 2021, 07:46
    0
    • D Dmitriano
      9 Dec 2021, 07:37

      When I build my app for Android with QT 6.2.2 I get APK of 148M size that contains uncompressed file android_rcc_bundle.rcc of 118M size.

      What is it? Is there a way to reduce its size?

      As far as I can guess it is something related to

          // Do not compress Qt binary resources file
          aaptOptions {
              noCompress 'rcc'
          }
      

      in build.gradle.

      If my guess is correct, why is not it compressed?

      See my blog post for information on how I built a QT version for Android.

      J Offline
      J Offline
      J.Hilk
      Moderators
      wrote on 9 Dec 2021, 07:46 last edited by
      #2

      @Dmitriano I don't know for sure, but that change came with the introduction of the aab format that google now requires.

      its supposed to allow for shared resources between app architectures and it looks like that's not possible when you compress the resources 🤷‍♂️


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      D 1 Reply Last reply 9 Dec 2021, 23:26
      1
      • J J.Hilk
        9 Dec 2021, 07:46

        @Dmitriano I don't know for sure, but that change came with the introduction of the aab format that google now requires.

        its supposed to allow for shared resources between app architectures and it looks like that's not possible when you compress the resources 🤷‍♂️

        D Offline
        D Offline
        Dmitriano
        wrote on 9 Dec 2021, 23:26 last edited by Dmitriano 12 Oct 2021, 21:21
        #3

        @J-Hilk APK size is 148M, android_rcc_bundle.rcc is 118M, but AAB does not include android_rcc_bundle.rcc and its size is 73MB.

        android_rcc_bundle.rcc size was 1.5M in QT 5, what happened in QT6?

        1 Reply Last reply
        0
        • D Dmitriano
          9 Dec 2021, 07:37

          When I build my app for Android with QT 6.2.2 I get APK of 148M size that contains uncompressed file android_rcc_bundle.rcc of 118M size.

          What is it? Is there a way to reduce its size?

          As far as I can guess it is something related to

              // Do not compress Qt binary resources file
              aaptOptions {
                  noCompress 'rcc'
              }
          

          in build.gradle.

          If my guess is correct, why is not it compressed?

          See my blog post for information on how I built a QT version for Android.

          D Offline
          D Offline
          Dmitriano
          wrote on 10 Dec 2021, 20:05 last edited by Dmitriano 12 Oct 2021, 20:05
          #4

          @Dmitriano It is generated with the following commands:

          Running command 'E:/Qt/Qt6.2.2/windows/bin/rcc.exe --project -o E:/repos/build/lgA3/android-build//assets/android_rcc_bundle.qrc'
          Running command 'E:/Qt/Qt6.2.2/windows/bin/rcc.exe "--root=/android_rcc_bundle/" --no-zstd --binary -o E:/repos/build/lgA3/android-build//assets/android_rcc_bundle.rcc android_rcc_bundle.qrc'
          
          E:\Qt\Qt6.2.2\windows\bin\rcc.exe -h
          ...
            --project                             Output a resource file containing all
                                                  files from the current directory.
          ...
          
          1 Reply Last reply
          0
          • D Dmitriano
            9 Dec 2021, 07:37

            When I build my app for Android with QT 6.2.2 I get APK of 148M size that contains uncompressed file android_rcc_bundle.rcc of 118M size.

            What is it? Is there a way to reduce its size?

            As far as I can guess it is something related to

                // Do not compress Qt binary resources file
                aaptOptions {
                    noCompress 'rcc'
                }
            

            in build.gradle.

            If my guess is correct, why is not it compressed?

            See my blog post for information on how I built a QT version for Android.

            D Offline
            D Offline
            Dmitriano
            wrote on 12 Dec 2021, 12:34 last edited by
            #5

            @Dmitriano Probably I had some wrong build configuration, after some experimentation and switching to Java11 it become about 1MB.

            1 Reply Last reply
            1

            1/5

            9 Dec 2021, 07:37

            • Login

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