What is android_rcc_bundle.rcc ? Is there a way to reduce its size?
-
wrote on 9 Dec 2021, 07:37 last edited by Dmitriano 12 Sept 2021, 07:38
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.
-
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 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 🤷♂️
wrote on 9 Dec 2021, 23:26 last edited by Dmitriano 12 Oct 2021, 21:21@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? -
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.
wrote on 10 Dec 2021, 20:05 last edited by Dmitriano 12 Oct 2021, 20:05@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. ...
-
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.
wrote on 12 Dec 2021, 12:34 last edited by@Dmitriano Probably I had some wrong build configuration, after some experimentation and switching to Java11 it become about 1MB.
5/5