First try after installation to deploy a simple tutorial application Qt Quick controls application doesn't work



  • Hi everybody,

    I'm new and I'm a big beginner.

    I try to install for 1 week Qt for android.
    I can't emulate a simple Qt quick application.

    The built seems to be OK, just some warnings :
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils

    but for Run, I have some error messages.
    When I Run the first time (when the emulator is not yet launched ). The emulator is launched correctly, but the deployment of the application is'nt (error when deploy)
    I Run a second time, this time in tab 3 output of application, I obtain many error maessages:
    E/Trace ( 1301): error opening trace file: No such file or directory (2)

    W/System.err( 1301): java.lang.ClassNotFoundException: android.graphics.drawable.RippleDrawable
    W/System.err( 1301): at java.lang.Class.classForName(Native Method)
    W/System.err( 1301): at java.lang.Class.forName(Class.java:217)
    W/System.err( 1301): at java.lang.Class.forName(Class.java:172)
    W/System.err( 1301): at org.qtproject.qt5.android.ExtractStyle.getClass(ExtractStyle.java:388)
    W/System.err( 1301): at org.qtproject.qt5.android.ExtractStyle.<init>(ExtractStyle.java:92)
    W/System.err( 1301): at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:508)
    W/System.err( 1301): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err( 1301): at java.lang.reflect.Method.invoke(Method.java:511)
    W/System.err( 1301): at org.qtproject.qt5.android.bindings.QtActivity.loadApplication(QtActivity.java:245)
    W/System.err( 1301): at org.qtproject.qt5.android.bindings.QtActivity.startApp(QtActivity.java:655)
    W/System.err( 1301): at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:901)
    W/System.err( 1301): at android.app.Activity.performCreate(Activity.java:5008)
    W/System.err( 1301): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
    W/System.err( 1301): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
    W/System.err( 1301): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
    W/System.err( 1301): at android.app.ActivityThread.access$600(ActivityThread.java:130)
    W/System.err( 1301): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
    W/System.err( 1301): at android.os.Handler.dispatchMessage(Handler.java:99)
    W/System.err( 1301): at android.os.Looper.loop(Looper.java:137)
    W/System.err( 1301): at android.app.ActivityThread.main(ActivityThread.java:4745)
    W/System.err( 1301): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err( 1301): at java.lang.reflect.Method.invoke(Method.java:511)
    W/System.err( 1301): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
    W/System.err( 1301): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
    W/System.err( 1301): at dalvik.system.NativeStart.main(Native Method)
    W/System.err( 1301): Caused by: java.lang.NoClassDefFoundError: android/graphics/drawable/RippleDrawable
    W/System.err( 1301): ... 25 more
    W/System.err( 1301): Caused by: java.lang.ClassNotFoundException: android.graphics.drawable.RippleDrawable
    W/System.err( 1301): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
    W/System.err( 1301): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
    W/System.err( 1301): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
    W/System.err( 1301): ... 25 more
    W/System.err( 1301): java.lang.ClassNotFoundException: android.graphics.drawable.AnimatedStateListDrawable
    W/System.err( 1301): at java.lang.Class.classForName(Native Method)
    W/System.err( 1301): at java.lang.Class.forName(Class.java:217)
    W/System.err( 1301): at java.lang.Class.forName(Class.java:172)
    W/System.err( 1301): at org.qtproject.qt5.android.ExtractStyle.getClass(ExtractStyle.java:388)
    W/System.err( 1301): at org.qtproject.qt5.android.ExtractStyle.<init>(ExtractStyle.java:93)
    W/System.err( 1301): at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:508)
    W/System.err( 1301): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err( 1301): at java.lang.reflect.Method.invoke(Method.java:511)
    W/System.err( 1301): at org.qtproject.qt5.android.bindings.QtActivity.loadApplication(QtActivity.java:245)
    W/System.err( 1301): at org.qtproject.qt5.android.bindings.QtActivity.startApp(QtActivity.java:655)
    W/System.err( 1301): at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:901)
    W/System.err( 1301): at android.app.Activity.performCreate(Activity.java:5008)
    W/System.err( 1301): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
    W/System.err( 1301): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
    W/System.err( 1301): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
    W/System.err( 1301): at android.app.ActivityThread.access$600(ActivityThread.java:130)
    W/System.err( 1301): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
    W/System.err( 1301): at android.os.Handler.dispatchMessage(Handler.java:99)
    W/System.err( 1301): at android.os.Looper.loop(Looper.java:137)
    W/System.err( 1301): at android.app.ActivityThread.main(ActivityThread.java:4745)
    W/System.err( 1301): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err( 1301): at java.lang.reflect.Method.invoke(Method.java:511)
    W/System.err( 1301): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
    W/System.err( 1301): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
    W/System.err( 1301): at dalvik.system.NativeStart.main(Native Method)
    W/System.err( 1301): Caused by: java.lang.NoClassDefFoundError: android/graphics/drawable/AnimatedStateListDrawable
    W/System.err( 1301): ... 25 more
    W/System.err( 1301): Caused by: java.lang.ClassNotFoundException: android.graphics.drawable.AnimatedStateListDrawable
    W/System.err( 1301): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
    W/System.err( 1301): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
    W/System.err( 1301): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
    W/System.err( 1301): ... 25 more
    W/System.err( 1301): java.lang.ClassNotFoundException: android.graphics.drawable.VectorDrawable
    W/System.err( 1301): at java.lang.Class.classForName(Native Method)
    W/System.err( 1301): at java.lang.Class.forName(Class.java:217)
    W/System.err( 1301): at java.lang.Class.forName(Class.java:172)
    W/System.err( 1301): at org.qtproject.qt5.android.ExtractStyle.getClass(ExtractStyle.java:388)
    W/System.err( 1301): at org.qtproject.qt5.android.ExtractStyle.<init>(ExtractStyle.java:94)
    W/System.err( 1301): at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:508)
    W/System.err( 1301): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err( 1301): at java.lang.reflect.Method.invoke(Method.java:511)
    W/System.err( 1301): at org.qtproject.qt5.android.bindings.QtActivity.loadApplication(QtActivity.java:245)
    W/System.err( 1301): at org.qtproject.qt5.android.bindings.QtActivity.startApp(QtActivity.java:655)
    W/System.err( 1301): at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:901)
    W/System.err( 1301): at android.app.Activity.performCreate(Activity.java:5008)
    W/System.err( 1301): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
    W/System.err( 1301): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
    W/System.err( 1301): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
    W/System.err( 1301): at android.app.ActivityThread.access$600(ActivityThread.java:130)
    W/System.err( 1301): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
    W/System.err( 1301): at android.os.Handler.dispatchMessage(Handler.java:99)
    W/System.err( 1301): at android.os.Looper.loop(Looper.java:137)
    W/System.err( 1301): at android.app.ActivityThread.main(ActivityThread.java:4745)
    W/System.err( 1301): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err( 1301): at java.lang.reflect.Method.invoke(Method.java:511)
    W/System.err( 1301): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
    W/System.err( 1301): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
    W/System.err( 1301): at dalvik.system.NativeStart.main(Native Method)
    W/System.err( 1301): Caused by: java.lang.NoClassDefFoundError: android/graphics/drawable/VectorDrawable
    W/System.err( 1301): ... 25 more
    W/System.err( 1301): Caused by: java.lang.ClassNotFoundException: android.graphics.drawable.VectorDrawable
    W/System.err( 1301): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
    W/System.err( 1301): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
    W/System.err( 1301): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
    W/System.err( 1301): ... 25 more
    W/System.err( 1301): java.lang.NoSuchFieldException: View_paddingStart
    W/System.err( 1301): at java.lang.Class.getDeclaredField(Class.java:631)
    W/System.err( 1301): at org.qtproject.qt5.android.ExtractStyle.getField(ExtractStyle.java:427)
    W/System.err( 1301): at org.qtproject.qt5.android.ExtractStyle.<init>(ExtractStyle.java:173)
    W/System.err( 1301): at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:508)
    W/System.err( 1301): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err( 1301): at java.lang.reflect.Method.invoke(Method.java:511)
    W/System.err( 1301): at org.qtproject.qt5.android.bindings.QtActivity.loadApplication(QtActivity.java:245)
    W/System.err( 1301): at org.qtproject.qt5.android.bindings.QtActivity.startApp(QtActivity.java:655)
    W/System.err( 1301): at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:901)
    W/System.err( 1301): at android.app.Activity.performCreate(Activity.java:5008)
    W/System.err( 1301): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
    W/System.err( 1301): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
    W/System.err( 1301): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
    W/System.err( 1301): at android.app.ActivityThread.access$600(ActivityThread.java:130)
    W/System.err( 1301): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
    W/System.err( 1301): at android.os.Handler.dispatchMessage(Handler.java:99)
    W/System.err( 1301): at android.os.Looper.loop(Looper.java:137)
    W/System.err( 1301): at android.app.ActivityThread.main(ActivityThread.java:4745)
    W/System.err( 1301): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err( 1301): at java.lang.reflect.Method.invoke(Method.java:511)
    W/System.err( 1301): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
    W/System.err( 1301): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
    W/System.err( 1301): at dalvik.system.NativeStart.main(Native Method)
    W/System.err( 1301): java.lang.NoSuchFieldException: View_paddingEnd
    W/System.err( 1301): at java.lang.Class.getDeclaredField(Class.java:631)
    W/System.err( 1301): at org.qtproject.qt5.android.ExtractStyle.getField(ExtractStyle.java:427)
    W/System.err( 1301): at org.qtproject.qt5.android.ExtractStyle.<init>(ExtractStyle.java:174)
    W/System.err( 1301): at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:508)
    W/System.err( 1301): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err( 1301): at java.lang.reflect.Method.invoke(Method.java:511)
    W/System.err( 1301): at org.qtproject.qt5.android.bindings.QtActivity.loadApplication(QtActivity.java:245)
    W/System.err( 1301): at org.qtproject.qt5.android.bindings.QtActivity.startApp(QtActivity.java:655)
    W/System.err( 1301): at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:901)
    W/System.err( 1301): at android.app.Activity.performCreate(Activity.java:5008)
    W/System.err( 1301): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
    W/System.err( 1301): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
    W/System.err( 1301): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
    W/System.err( 1301): at android.app.ActivityThread.access$600(ActivityThread.java:130)
    W/System.err( 1301): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
    W/System.err( 1301): at android.os.Handler.dispatchMessage(Handler.java:99)
    W/System.err( 1301): at android.os.Looper.loop(Looper.java:137)
    W/System.err( 1301): at android.app.ActivityThread.main(ActivityThread.java:4745)
    W/System.err( 1301): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err( 1301): at java.lang.reflect.Method.invoke(Method.java:511)
    W/System.err( 1301): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
    W/System.err( 1301): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
    W/System.err( 1301): at dalvik.system.NativeStart.main(Native Method)
    W/ResourceType( 1301): Skipping entry 0x10804be in package table 0 because it is not complex!

    W/EGL_emulation( 1301): eglSurfaceAttrib not implemented

    W/libessai.so( 1301): (null):0 ((null)): QOpenGLShader::compile(Fragment): ERROR: 0:1: '' : No precision specified for (float)
    W/libessai.so( 1301):
    W/libessai.so( 1301): (null):0 ((null)): *** Problematic Fragment shader source code ***
    W/libessai.so( 1301): (null):0 ((null)): #define lowp
    W/libessai.so( 1301): #define mediump
    W/libessai.so( 1301): #define highp
    W/libessai.so( 1301): #line 1
    W/libessai.so( 1301): varying highp vec2 qt_TexCoord;
    W/libessai.so( 1301):
    W/libessai.so( 1301): uniform sampler2D qt_Texture;
    W/libessai.so( 1301):
    W/libessai.so( 1301): void main()
    W/libessai.so( 1301): {
    W/libessai.so( 1301): gl_FragColor = texture2D(qt_Texture, qt_TexCoord);
    W/libessai.so( 1301): }
    W/libessai.so( 1301): (null):0 ((null)): ***
    W/libessai.so( 1301): (null):0 ((null)): shader compilation failed:
    W/libessai.so( 1301): ""
    W/libessai.so( 1301): (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( qt_Matrix ): shader program is not linked
    W/libessai.so( 1301): (null):0 ((null)): QOpenGLShader::compile(Fragment): ERROR: 0:1: '' : No precision specified for (float)
    W/libessai.so( 1301): ERROR: 0:4: '' : No precision specified for (float)
    W/libessai.so( 1301):
    W/libessai.so( 1301): (null):0 ((null)): *** Problematic Fragment shader source code ***
    W/libessai.so( 1301): (null):0 ((null)): #define lowp
    W/libessai.so( 1301): #define mediump
    W/libessai.so( 1301): #define highp
    W/libessai.so( 1301): #line 1
    W/libessai.so( 1301): varying highp vec2 qt_TexCoord;
    W/libessai.so( 1301):
    W/libessai.so( 1301): uniform sampler2D qt_Texture;
    W/libessai.so( 1301): uniform lowp float opacity;
    W/libessai.so( 1301):
    W/libessai.so( 1301): void main()
    W/libessai.so( 1301): {
    W/libessai.so( 1301): gl_FragColor = texture2D(qt_Texture, qt_TexCoord) * opacity;
    W/libessai.so( 1301): }
    W/libessai.so( 1301): (null):0 ((null)): ***
    W/libessai.so( 1301): (null):0 ((null)): shader compilation failed:
    W/libessai.so( 1301): ""
    W/libessai.so( 1301): (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( qt_Matrix ): shader program is not linked
    W/libessai.so( 1301): (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( opacity ): shader program is not linked
    W/libessai.so( 1301): (null):0 ((null)): QOpenGLShader::compile(Fragment): ERROR: 0:1: '' : No precision specified for (float)
    W/libessai.so( 1301): ERROR: 0:4: '' : No precision specified for (float)
    W/libessai.so( 1301): ERROR: 0:5: '' : No precision specified for (float)
    W/libessai.so( 1301): ERROR: 0:6: '' : No precision specified for (float)
    W/libessai.so( 1301):
    W/libessai.so( 1301): (null):0 ((null)): *** Problematic Fragment shader source code ***
    W/libessai.so( 1301): (null):0 ((null)): #define lowp
    W/libessai.so( 1301): #define mediump
    W/libessai.so( 1301): #define highp
    W/libessai.so( 1301): #line 1
    W/libessai.so( 1301): varying highp vec2 sampleCoord;
    W/libessai.so( 1301):
    W/libessai.so( 1301): uniform mediump sampler2D _qt_texture;
    W/libessai.so( 1301): uniform lowp vec4 color;
    W/libessai.so( 1301): uniform mediump float alphaMin;
    W/libessai.so( 1301): uniform mediump float alphaMax;
    W/libessai.so( 1301):
    .....
    "org.qtproject.example.essai" terminated.

    Can anybody help me please ?
    Thank you in advance



  • Is there anybody have the same issue ?
    Any track, suggestions ?
    I try so many things (try different versions of JDK, Qt, AVD, android)

    I lost so many times.

    Thanks in advance


  • Moderators

    @Titi67
    don't know if it helps you in this case, but worth a try.
    You may want to try enabling hardware accelerated graphics in your emulator.



  • Omg I lost too much time. I think I'm going to give up this plateform to developp application.


  • Qt Champions 2016

    Does the emulator really features such good opengl support as QML requires?
    Have you had anything else running in the emulator ? Not QML based?
    Did u try to deply to real device ?
    http://doc.qt.io/qtcreator/creator-deploying-android.html

    Also as @raven-worx suggest, enable hardware accelerated graphics or check if it is
    enabled. QML demands accelerated with good openGL. Not sure on android but on desktop it's
    picky. Often (sometimes/it happens) the QML welcome screen refuse to load on laptops with intel chipset due to
    the opengl being too old.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.