Black screen when you run android with 5.7 Qt application



  • Hi,

    I am developing a small android application in qt 5.7. When you run the application in the terminal shows a black screen and then runs the application. By reviewing the output of the application from Qt, I see the following error:

    W/System.err(16235): java.lang.ClassNotFoundException: android.graphics.drawable.RippleDrawable
    W/System.err(16235): at java.lang.Class.classForName(Native Method)
    W/System.err(16235): at java.lang.Class.forName(Class.java:251)
    W/System.err(16235): at java.lang.Class.forName(Class.java:216)
    W/System.err(16235): at org.qtproject.qt5.android.ExtractStyle.getClass(ExtractStyle.java:395)
    W/System.err(16235): at org.qtproject.qt5.android.ExtractStyle.<init>(ExtractStyle.java:98)
    W/System.err(16235): at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:512)
    W/System.err(16235): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(16235): at java.lang.reflect.Method.invoke(Method.java:515)
    W/System.err(16235): at org.qtproject.qt5.android.bindings.QtLoader.loadApplication(QtLoader.java:237)
    W/System.err(16235): at org.qtproject.qt5.android.bindings.QtLoader.startApp(QtLoader.java:647)
    W/System.err(16235): at org.qtproject.qt5.android.bindings.QtActivityLoader.onCreate(QtActivityLoader.java:181)
    W/System.err(16235): at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:269)
    W/System.err(16235): at android.app.Activity.performCreate(Activity.java:5275)
    W/System.err(16235): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
    W/System.err(16235): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2166)
    W/System.err(16235): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2252)
    W/System.err(16235): at android.app.ActivityThread.access$800(ActivityThread.java:139)
    W/System.err(16235): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1200)
    W/System.err(16235): at android.os.Handler.dispatchMessage(Handler.java:102)
    W/System.err(16235): at android.os.Looper.loop(Looper.java:136)
    W/System.err(16235): at android.app.ActivityThread.main(ActivityThread.java:5103)
    W/System.err(16235): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(16235): at java.lang.reflect.Method.invoke(Method.java:515)
    W/System.err(16235): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:788)
    W/System.err(16235): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604)
    W/System.err(16235): at dalvik.system.NativeStart.main(Native Method)
    W/System.err(16235): Caused by: java.lang.NoClassDefFoundError: android/graphics/drawable/RippleDrawable
    W/System.err(16235): ... 26 more
    W/System.err(16235): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.graphics.drawable.RippleDrawable" on path: DexPathList[[zip file "/data/app/org.qtproject.example-1.apk"],nativeLibraryDirectories=[/data/app-lib/org.qtproject.example-1, /vendor/lib, /system/lib]]
    W/System.err(16235): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    W/System.err(16235): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
    W/System.err(16235): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
    W/System.err(16235): ... 26 more
    W/System.err(16235): java.lang.ClassNotFoundException: android.graphics.drawable.AnimatedStateListDrawable
    W/System.err(16235): at java.lang.Class.classForName(Native Method)
    W/System.err(16235): at java.lang.Class.forName(Class.java:251)
    W/System.err(16235): at java.lang.Class.forName(Class.java:216)
    W/System.err(16235): at org.qtproject.qt5.android.ExtractStyle.getClass(ExtractStyle.java:395)
    W/System.err(16235): at org.qtproject.qt5.android.ExtractStyle.<init>(ExtractStyle.java:99)
    W/System.err(16235): at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:512)
    W/System.err(16235): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(16235): at java.lang.reflect.Method.invoke(Method.java:515)
    W/System.err(16235): at org.qtproject.qt5.android.bindings.QtLoader.loadApplication(QtLoader.java:237)
    W/System.err(16235): at org.qtproject.qt5.android.bindings.QtLoader.startApp(QtLoader.java:647)
    W/System.err(16235): at org.qtproject.qt5.android.bindings.QtActivityLoader.onCreate(QtActivityLoader.java:181)
    W/System.err(16235): at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:269)
    W/System.err(16235): at android.app.Activity.performCreate(Activity.java:5275)
    W/System.err(16235): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
    W/System.err(16235): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2166)
    W/System.err(16235): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2252)
    W/System.err(16235): at android.app.ActivityThread.access$800(ActivityThread.java:139)
    W/System.err(16235): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1200)
    W/System.err(16235): at android.os.Handler.dispatchMessage(Handler.java:102)
    W/System.err(16235): at android.os.Looper.loop(Looper.java:136)
    W/System.err(16235): at android.app.ActivityThread.main(ActivityThread.java:5103)
    W/System.err(16235): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(16235): at java.lang.reflect.Method.invoke(Method.java:515)
    W/System.err(16235): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:788)
    W/System.err(16235): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604)
    W/System.err(16235): at dalvik.system.NativeStart.main(Native Method)
    W/System.err(16235): Caused by: java.lang.NoClassDefFoundError: android/graphics/drawable/AnimatedStateListDrawable
    W/System.err(16235): ... 26 more
    W/System.err(16235): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.graphics.drawable.AnimatedStateListDrawable" on path: DexPathList[[zip file "/data/app/org.qtproject.example-1.apk"],nativeLibraryDirectories=[/data/app-lib/org.qtproject.example-1, /vendor/lib, /system/lib]]
    W/System.err(16235): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    W/System.err(16235): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
    W/System.err(16235): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
    W/System.err(16235): ... 26 more
    W/System.err(16235): java.lang.ClassNotFoundException: android.graphics.drawable.VectorDrawable
    W/System.err(16235): at java.lang.Class.classForName(Native Method)
    W/System.err(16235): at java.lang.Class.forName(Class.java:251)
    W/System.err(16235): at java.lang.Class.forName(Class.java:216)
    W/System.err(16235): at org.qtproject.qt5.android.ExtractStyle.getClass(ExtractStyle.java:395)
    W/System.err(16235): at org.qtproject.qt5.android.ExtractStyle.<init>(ExtractStyle.java:100)
    W/System.err(16235): at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:512)
    W/System.err(16235): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(16235): at java.lang.reflect.Method.invoke(Method.java:515)
    W/System.err(16235): at org.qtproject.qt5.android.bindings.QtLoader.loadApplication(QtLoader.java:237)
    W/System.err(16235): at org.qtproject.qt5.android.bindings.QtLoader.startApp(QtLoader.java:647)
    W/System.err(16235): at org.qtproject.qt5.android.bindings.QtActivityLoader.onCreate(QtActivityLoader.java:181)
    W/System.err(16235): at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:269)
    W/System.err(16235): at android.app.Activity.performCreate(Activity.java:5275)
    W/System.err(16235): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
    W/System.err(16235): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2166)
    W/System.err(16235): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2252)
    W/System.err(16235): at android.app.ActivityThread.access$800(ActivityThread.java:139)
    W/System.err(16235): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1200)
    W/System.err(16235): at android.os.Handler.dispatchMessage(Handler.java:102)
    W/System.err(16235): at android.os.Looper.loop(Looper.java:136)
    W/System.err(16235): at android.app.ActivityThread.main(ActivityThread.java:5103)
    W/System.err(16235): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(16235): at java.lang.reflect.Method.invoke(Method.java:515)
    W/System.err(16235): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:788)
    W/System.err(16235): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604)
    W/System.err(16235): at dalvik.system.NativeStart.main(Native Method)
    W/System.err(16235): Caused by: java.lang.NoClassDefFoundError: android/graphics/drawable/VectorDrawable
    W/System.err(16235): ... 26 more
    W/System.err(16235): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.graphics.drawable.VectorDrawable" on path: DexPathList[[zip file "/data/app/org.qtproject.example-1.apk"],nativeLibraryDirectories=[/data/app-lib/org.qtproject.example-1, /vendor/lib, /system/lib]]
    W/System.err(16235): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    W/System.err(16235): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
    W/System.err(16235): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
    W/System.err(16235): ... 26 more
    W/ResourceType(16235): Skipping entry 0x1080526 in package table 0 because it is not complex!

    Can anyone help me? Thank you


Log in to reply
 

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