Qt World Summit: Register Today!

Error while deploying project (QT for Android)

  • As I run my project in QT creator, I get the following error:
    W System.err: java.lang.ClassNotFoundException: Didn't find class "org.qtproject.example.jnimessenger.JniMessenger" on path: DexPathList[[],nativeLibraryDirectories=[/system/lib64, /system/vendor/lib64]]
    W System.err: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
    W System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
    W System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    W System.err: at org.qtproject.qt5.android.QtNative.startQtApplication(Native Method)
    W System.err: at org.qtproject.qt5.android.QtNative$7.run(QtNative.java:620)
    W System.err: at org.qtproject.qt5.android.QtThread$1.run(QtThread.java:61)
    W System.err: at java.lang.Thread.run(Thread.java:764)
    F ra_cart_manage: java_vm_ext.cc:542] JNI DETECTED ERROR IN APPLICATION: java_object == null
    F ra_cart_manage: java_vm_ext.cc:542] in call to GetObjectClass

    qt error.PNG
    What could possibly be wrong?
    Edit: I can see the JNIMessenger.java file in android studio but not in QT Creator:
    android qt.PNG
    qt android.PNG

Log in to reply