Details
-
Task
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.4.2
-
-
2024wk28s2FOQtforAndroid
Description
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.
Attachments
Issue Links
- relates to
-
QTBUG-116884 Redesign Android QPA
- Closed
-
QTBUG-57216 Create a container to embed Quick items into a native Android/iOS application
- Closed