Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android ITrustManager.isDeviceLocked(int)'on a null object reference

Android ITrustManager.isDeviceLocked(int)'on a null object reference

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 470 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    ChristopherAN
    wrote on last edited by
    #1

    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 28

    Compilation 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

    M 1 Reply Last reply
    0
    • C ChristopherAN

      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 28

      Compilation 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

      M Offline
      M Offline
      mvuori
      wrote on last edited by
      #2

      I'd try NDK 19 (for me NDK 20 didn't work with Qt 5.12.3)

      1 Reply Last reply
      0
      • C Offline
        C Offline
        ChristopherAN
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved