I would like to use libvlc with an Android QT application, but the application always crash at startup.

To ensure that it isn't a compile problem, I've copied the libvlcjni.so from this project: https://github.com/mzafers/QtVlcMediaPlayer, but continue with the same problem, the application crash at startup. Also too with the libvlcjni.so that is inside the official vlc APK.

Finally, I've done a dummy project, with only the default Quick QML Project, and only added the library with ANDROID_EXTRA_LIBS, but the same occurs:

main.cpp:
Qt Code:
  1. #include <QGuiApplication>
  2. #include <QQmlApplicationEngine>
  3. int main(int argc, char *argv[])
  4. {
  5. QGuiApplication app(argc, argv);
  6. QQmlApplicationEngine engine;
  7. engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
  8. return app.exec();
  9. }
To copy to clipboard, switch view to plain text mode 

main.qml:
Qt Code:
  1. import QtQuick 2.4
  2. import QtQuick.Controls 1.3
  3.  
  4. ApplicationWindow {
  5. visible: true
  6. width: 640
  7. height: 480
  8. title: qsTr("Hello World")
  9.  
  10. menuBar: MenuBar {
  11. Menu {
  12. title: qsTr("File")
  13. MenuItem {
  14. text: qsTr("&Open")
  15. onTriggered: console.log("Open action triggered");
  16. }
  17. MenuItem {
  18. text: qsTr("Exit")
  19. onTriggered: Qt.quit();
  20. }
  21. }
  22. }
  23.  
  24. Label {
  25. text: qsTr("Hello World")
  26. anchors.centerIn: parent
  27. }
  28. }
To copy to clipboard, switch view to plain text mode 

TestLibVLC.pro:
Qt Code:
  1. TEMPLATE = app
  2. QT += qml quick
  3. CONFIG += c++14
  4. SOURCES += main.cpp
  5. RESOURCES += qml.qrc
  6. QML_IMPORT_PATH =
  7. include(deployment.pri)
  8. VLCLIB_PATH = D:/libs/VLC
  9. contains(ANDROID_TARGET_ARCH,armeabi-v7a) {
  10. ANDROID_EXTRA_LIBS = \
  11. $${VLCLIB_PATH}/android/armeabi-v7a/libvlcjni.so
  12. }
To copy to clipboard, switch view to plain text mode 

Any ideas?