简体   繁体   中英

Qt5 for Android: Project ERROR: Unknown module(s) in QT: quick qml

I built Qt5 for Android with the step by step tutorial from this link: Building Qt 5 for Android .

Now, i'm able to build and deploy QWidget Applications to my nexus 7. But if i try to build a QtQuick Application with the given template of QtCreator 2.7.1, i get the following error:

Project ERROR: Unknown module(s) in QT: quick qml

I did every build step exactly as described in the tutorial. Has anybody else faced this error?

QtQuick works perfectly well with Qt5.2. My suggestion is that you built Qt5.2 from source, instead of simply installing it, ie you clone it from Gitorious . After you check all the details, once you put it to build, go for a coffee as it will take a while to finish it.

Also, have you installed the Android SDK and NDK? If not, my suggestion is that you install the Studio Android .

You will also have to be very careful in making all the environment setups for your cross-compiling tool-chain otherwise it will not work. Check in the sequence what I have for my development settings.

在此输入图像描述

Ant is also part of the installation, as you probably won't wish to miss that.

在此输入图像描述

In the end if you have done all the settings accordingly, without forgetting anything, then you just need to select Qt Quick Application.

在此输入图像描述

And it will work, as qt quick is officially supported on Android Qt5.2.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM