Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-111300

Android: Using Qt as 3rd party library for a non Qt application

XMLWordPrintable

    • Android
    • 2024wk28s2FOQtforAndroid

      When an Android library with Qt is used as a 3rd party library for a non Qt application, the app is not able to get a valid javaVM object and for Qt, that object is obtained when JNI_Onload() is called. This is usually called by the VM when loadLibrary() is called and that's been done in Qt when the app starts but in this case it is not happening which causes a crash when the library is trying to use the QtCore dependency.

      A solution of technical change and/or documentation should be provided how a Qt library should be implemented and deployed when used as a 3rd party library in a non Qt application.

      To reproduce, please use the attached example.  

        1. callstack.png
          38 kB
          Tuomas Vaarala
        2. qtbug_111300.zip
          96 kB
          Tuomas Vaarala
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            soarmin Soheil Armin
            tuomas.vaarala Tuomas Vaarala
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes