[Interest] Qt 5.14 for Android - module "QtQuick" is not installed

Nuno Santos nunosantos at imaginando.pt
Fri Feb 28 10:31:04 CET 2020


Hi Eskil,

Yesterday I decided to give a go on Qt 5.14.1 to see if this problem was already solved but I have stumbled on another one. When starting the application I have this:

I don’t have a clue of what this means. Do you have an idea?

D FR : Starting activity
W ResourceType: Invalid package identifier when getting bag for resource number 0x00000000
E Qt : Can't create main activity
E Qt : android.content.res.Resources$NotFoundException: String array resource ID #0x0
E Qt : at android.content.res.Resources.getStringArray(Resources.java:525)
E Qt : at org.qtproject.qt5.android.bindings.QtLoader.startApp(QtLoader.java:423)
E Qt : at org.qtproject.qt5.android.bindings.QtActivityLoader.onCreate(QtActivityLoader.java:166)
E Qt : at org.qtproject.qt5.android.bindings.QtActivity.onCreateHook(QtActivity.java:266)
E Qt : at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:273)
E Qt : at com.imaginando.frms.FRActivity.onCreate(FRActivity.java:99)
E Qt : at android.app.Activity.performCreate(Activity.java:6679)
E Qt : at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
E Qt : at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
E Qt : at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
E Qt : at android.app.ActivityThread.-wrap12(ActivityThread.java)
E Qt : at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
E Qt : at android.os.Handler.dispatchMessage(Handler.java:102)
E Qt : at android.os.Looper.loop(Looper.java:154)
E Qt : at android.app.ActivityThread.main(ActivityThread.java:6119)
E Qt : at java.lang.reflect.Method.invoke(Native Method)
E Qt : at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
E Qt : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
D FR : Starting service
I OpenGLRenderer: Initialized EGL, version 1.4
D OpenGLRenderer: Swap behavior 2


I’m running Qt 5.14.2 snapshot but the same was happening with Qt 5.14.1 

Thanks in advance!

Best regards,

Nuno







> On 13 Dec 2019, at 09:19, Eskil Abrahamsen Blomfeldt <Eskil.Abrahamsen-Blomfeldt at qt.io> wrote:
> 
> 
> 
> On 10.12.2019 00:10, Nuno Santos wrote:
>> Hi,
>> 
>> I’ve been trying Qt 5.14 Preview for Android. I’m looking forward to make use of the new app bundle feature.
>> 
>> The problem is that when trying to run an existing project I’m stumbling with the following problem:
>> 
>> I OpenGLRenderer: Initialized EGL, version 1.4
>> D OpenGLRenderer: Swap behavior 2
>> W DRC    : QQmlApplicationEngine failed to load component
>> W DRC    : qrc:/qml/main.qml:3 module "QtQuick.Controls" is not installed
>> W DRC    : qrc:/qml/main.qml:2 module "QtQuick.Window" is not installed
>> W DRC    : qrc:/qml/main.qml:1 module "QtQuick" is not installed
>> 
>> I have used the new Qt Creator 4.11.0-rc1 and re-created the android templates. I have replaced all the files except AndroidManifest.xml which I have carefully reviewed the diff and adjusted accordingly.
>> 
>> I’m not very comfortable with the inner workings of Android + Qt glue so I’m wondering if anyone has came across with this kind of problem already.
>> 
>> A blank quick application project works but I have seen it fail too. 
> 
> Hi, Nuno,
> 
> This may be one of two issues with similar symptoms. If the problem is with RC1 or earlier, then it could be https://bugreports.qt.io/browse/QTBUG-80468 <https://bugreports.qt.io/browse/QTBUG-80468> which was fixed in RC2. 
> 
> If it only happens with release packages then it is probably related to the Qt Quick Compiler. You can either disable this to work around it, or apply Andy's patch here (the patch does *not* require rebuilding Qt): 
> 
>     https://bugreports.qt.io/browse/QTBUG-80713 <https://bugreports.qt.io/browse/QTBUG-80713>
> 
> -- 
> Eskil Abrahamsen Blomfeldt
> Senior Manager, Graphics
> 
> The Qt Company
> Sandakerveien 116
> 0484, Oslo, Norway
> eskil.abrahamsen-blomfeldt at qt.io <mailto:eskil.abrahamsen-blomfeldt at qt.io>
> +47 938 85 836
> http://qt.io <http://qt.io/>
> 
> The Future is Written with Qt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20200228/a06ee54a/attachment.html>


More information about the Interest mailing list