PDA

View Full Version : Issues on Nexus 4



fenrice
5th September 2015, 21:20
Every time I try to deploy and run my app I get the following:


org.qtproject.example.untitled2" died.
Starting remote process.I/art ( 1427): Late-enabling -Xcheck:jni
W/linker ( 1427): libQt5Gui.so: unused DT entry: type 0x1d arg 0x4c004
W/linker ( 1427): libQt5Widgets.so: unused DT entry: type 0x1d arg 0x6a70c
W/linker ( 1427): libqtforandroid.so: unused DT entry: type 0x1d arg 0x8c8b
I/Qt ( 1427): qt start
W/System.err( 1427): java.lang.NoSuchFieldException: mInsetState
W/System.err( 1427): at java.lang.Class.getDeclaredField(Class.java:890)
W/System.err( 1427): at org.qtproject.qt5.android.ExtractStyle.getAccessib leField(ExtractStyle.java:405)
W/System.err( 1427): at org.qtproject.qt5.android.ExtractStyle.getDrawable (ExtractStyle.java:1103)
W/System.err( 1427): at org.qtproject.qt5.android.ExtractStyle.getLayerDra wable(ExtractStyle.java:629)
W/System.err( 1427): at org.qtproject.qt5.android.ExtractStyle.getRippleDr awable(ExtractStyle.java:820)
W/System.err( 1427): at org.qtproject.qt5.android.ExtractStyle.getDrawable (ExtractStyle.java:1028)
W/System.err( 1427): at org.qtproject.qt5.android.ExtractStyle.extractView Informations(ExtractStyle.java:1187)
W/System.err( 1427): at org.qtproject.qt5.android.ExtractStyle.extractText AppearanceInformations(ExtractStyle.java:1336)
W/System.err( 1427): at org.qtproject.qt5.android.ExtractStyle.<init>(ExtractStyle.java:2017)
W/System.err( 1427): at org.qtproject.qt5.android.QtActivityDelegate.loadA pplication(QtActivityDelegate.java:438)
W/System.err( 1427): at java.lang.reflect.Method.invoke(Native Method)
W/System.err( 1427): at java.lang.reflect.Method.invoke(Method.java:372)
W/System.err( 1427): at org.qtproject.qt5.android.bindings.QtActivity.load Application(QtActivity.java:245)
W/System.err( 1427): at org.qtproject.qt5.android.bindings.QtActivity.star tApp(QtActivity.java:655)
W/System.err( 1427): at org.qtproject.qt5.android.bindings.QtActivity.onCr eate(QtActivity.java:895)
W/System.err( 1427): at android.app.Activity.performCreate(Activity.java:5 990)
W/System.err( 1427): at android.app.Instrumentation.callActivityOnCreate(I nstrumentation.java:1106)
W/System.err( 1427): at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:2278)
W/System.err( 1427): at android.app.ActivityThread.handleLaunchActivity(Ac tivityThread.java:2387)
W/System.err( 1427): at android.app.ActivityThread.access$800(ActivityThre ad.java:151)
W/System.err( 1427): at android.app.ActivityThread$H.handleMessage(Activit yThread.java:1303)
W/System.err( 1427): at android.os.Handler.dispatchMessage(Handler.java:10 2)
W/System.err( 1427): at android.os.Looper.loop(Looper.java:135)
W/System.err( 1427): at android.app.ActivityThread.main(ActivityThread.jav a:5254)
W/System.err( 1427): at java.lang.reflect.Method.invoke(Native Method)
W/System.err( 1427): at java.lang.reflect.Method.invoke(Method.java:372)
W/System.err( 1427): at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:903)
W/System.err( 1427): at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:698)
W/System.err( 1427): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Field.get(java.lang.Object)' on a null object reference
W/System.err( 1427): at org.qtproject.qt5.android.ExtractStyle.getDrawable (ExtractStyle.java:1103)
W/System.err( 1427): at org.qtproject.qt5.android.ExtractStyle.getLayerDra wable(ExtractStyle.java:629)
W/System.err( 1427): at org.qtproject.qt5.android.ExtractStyle.getRippleDr awable(ExtractStyle.java:820)
W/System.err( 1427): at org.qtproject.qt5.android.ExtractStyle.getDrawable (ExtractStyle.java:1028)
W/System.err( 1427): at org.qtproject.qt5.android.ExtractStyle.extractView Informations(ExtractStyle.java:1187)
W/System.err( 1427): at org.qtproject.qt5.android.ExtractStyle.extractText AppearanceInformations(ExtractStyle.java:1336)
W/System.err( 1427): at org.qtproject.qt5.android.ExtractStyle.<init>(ExtractStyle.java:2017)
W/System.err( 1427): at org.qtproject.qt5.android.QtActivityDelegate.loadA pplication(QtActivityDelegate.java:438)
W/System.err( 1427): at java.lang.reflect.Method.invoke(Native Method)
W/System.err( 1427): at java.lang.reflect.Method.invoke(Method.java:372)
W/System.err( 1427): at org.qtproject.qt5.android.bindings.QtActivity.load Application(QtActivity.java:245)
W/System.err( 1427): at org.qtproject.qt5.android.bindings.QtActivity.star tApp(QtActivity.java:655)
W/System.err( 1427): at org.qtproject.qt5.android.bindings.QtActivity.onCr eate(QtActivity.java:895)
W/System.err( 1427): at android.app.Activity.performCreate(Activity.java:5 990)


I forgot to mention Ubuntu 14.04, latest sdk and ndk. I have no problem deploying on the same device (Nexus 4) with android studio, so it seems to be isolated to qt creator 3.3/qt 5.4 . The nexus 4 has the latest lollipop version. No issues with the emulator or with a Galaxy Note 4 device. Just the nexus 4. No issues deploying apps on the nexus with AndroidStudio (latest) either.

fenrice
6th September 2015, 02:25
Progress. I was able to connect and run an app when I did a factory reset. I still get a slew of messages as above, but it does appear that the apps are actually running. Before I was only getting the above and then no connection of adb to the device (it would just disappear from the devices list "adb devices") . Now I'm having trouble getting the debugger to work, but I'll google for a while before I bother you guys any more :) .

Anamaria Fiser
12th November 2015, 14:15
I encountered the same issues before, i did the same thing.... factory reset