What is android_rcc_bundle.rcc ? Is there a way to reduce its size?
Solved
Mobile and Embedded
-
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 🤷♂️
-
@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. ...