What is android_rcc_bundle.rcc ? Is there a way to reduce its size?
-
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.
-
@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 🤷♂️
-
@J-Hilk APK size is 148M,
android_rcc_bundle.rcc
is 118M, but AAB does not includeandroid_rcc_bundle.rcc
and its size is 73MB.android_rcc_bundle.rcc
size was 1.5M in QT 5, what happened in QT6? -
@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. ...
-
@Dmitriano Probably I had some wrong build configuration, after some experimentation and switching to Java11 it become about 1MB.
1/5