is it possible to use a Android Studio Library (aar file) in a Qt app?
The problem is, that I want to implement a mobile App with Qt, but there is only a library for Android Studio. Is it possible to include the library in the Qt project or have I to write a wrapper class for it?
If I have to implement a wrapper, do I have to use the JNI and are there any examples for using it with C++ and a Java lib?
I found the answer, that worked for me.
First you have to unzip the aar file, so you can get your jar library file. Then you can follow the instructions in this link to include the library to your apk: http://doc.qt.io/qt-5/android3rdpartylibs.html
When you have finished this, you have to implement your own Java wrapper class to interact with the library. Therfore you have to use the QAndroidJniObject class from Qt. Here are more information about it. http://doc.qt.io/qt-5/qandroidjniobject.html
You could also have a look at this example, where they use their own java class. http://doc.qt.io/qt-5/qtandroidextras-notification-example.html