Java – use AAR Library in QT
Can I use Android studio libraries (AAR files) in QT applications?
The problem is, I want to implement a mobile application with QT, but there is only one Android studio library. Can I include the library in the QT project, or let me write a wrapper class for it?
If you have to implement a wrapper, do you have to use JNI, and are there examples of using it with C and Java libraries?
resolvent:
I found the answer, which is useful to me
First, you must unzip the AAR file to get the jar library file. Then, you can include the library in your APK according to the instructions in this link: http://doc.qt.io/qt-5/android3rdpartylibs.html
After this operation, you must implement your own Java wrapper class to interact with the library. Therefore, you must use the qadroidjniobject class in QT. Here is more information about it http://doc.qt.io/qt-5/qandroidjniobject.html
You can also take a look at this example, which uses their own Java classes http://doc.qt.io/qt-5/qtandroidextras-notification-example.html