Android ITrustManager.isDeviceLocked(int)'on a null object reference
-
Hello,
I am trying to make an Android application with new version of QT.
NDK used : 20
Java JDK 8
Qt Creator 4.10.1
Qt 5.13.1
Android SDK 28Compilation went fine but I faced a problem when launching on the device, the app force quit with this exception:
java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.app.trust.ITrustManager.isDeviceLocked(int)' on a null object reference at android.os.Parcel.readException(Parcel.java:1629) at android.os.Parcel.readException(Parcel.java:1576) at android.content.IClipboard$Stub$Proxy.hasPrimaryClip(IClipboard.java:233) at android.content.ClipboardManager.hasPrimaryClip(ClipboardManager.java:156) at org.qtproject.qt5.android.QtNative.hasClipboardText(QtNative.java:743) at org.qtproject.qt5.android.QtActivityDelegate.updateHandles(QtActivityDelegate.java:549) at org.qtproject.qt5.android.QtNative$10.run(QtNative.java:646) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Strange thing is that I had no problem launching same project compiled with Qt 5.11
-
Hello,
I am trying to make an Android application with new version of QT.
NDK used : 20
Java JDK 8
Qt Creator 4.10.1
Qt 5.13.1
Android SDK 28Compilation went fine but I faced a problem when launching on the device, the app force quit with this exception:
java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.app.trust.ITrustManager.isDeviceLocked(int)' on a null object reference at android.os.Parcel.readException(Parcel.java:1629) at android.os.Parcel.readException(Parcel.java:1576) at android.content.IClipboard$Stub$Proxy.hasPrimaryClip(IClipboard.java:233) at android.content.ClipboardManager.hasPrimaryClip(ClipboardManager.java:156) at org.qtproject.qt5.android.QtNative.hasClipboardText(QtNative.java:743) at org.qtproject.qt5.android.QtActivityDelegate.updateHandles(QtActivityDelegate.java:549) at org.qtproject.qt5.android.QtNative$10.run(QtNative.java:646) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Strange thing is that I had no problem launching same project compiled with Qt 5.11
-
I just tried with NDK 19 or SDK 29 always same problem.
Even QT Example project didn't work, they compile but don't launch with same exception.