QtCreator Android: How to disable QtQuick?
-
I have an Android project built with Qt Creator 15 under Windows. Even though it is not using any QML/QtQuick (i.e. it's QtWidgets only), the resulting APK contains a lot of QtQuick libraries. How to get rid of them?
-
It might be that androiddeployqt is deploying stuff just in case.
You can just remove (rename / backup) the files from your Qt for Android SDK.
The logic here is, if the file is not there, it cannot be deployed 😀
-
Hehe. I've found the reason! My source tree contains a 3rd party library, which I updated recently. The new version would include an example showing how to use it with QML. Now, androiddeployqt is running qmlimportscanner with the root directory set to the source tree. Thus it will find this (unused) example code and stuff it's dependencies into the APK, nearly doubling the size.
I could get around that by specifying QML_ROOT_PATH in the project file.
-