Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. registerNatives failed when linking Qt Librarys to Android Project
Forum Updated to NodeBB v4.3 + New Features

registerNatives failed when linking Qt Librarys to Android Project

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
androidlibrarydynamic loadingbluetooth
1 Posts 1 Posters 582 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    morsch
    wrote on 20 May 2020, 08:31 last edited by
    #1

    I have a basic Library written in Qt, that worked fine when importing the .so to android with the libQt5Core.so.
    I wanted to add Bluetooth Functionality (-> Qt5AndroidExtras and Qt5Bluetooth lib neccessary) but now i run into errors when loading the library in my Android Project. Depending on the order of loading either

    A/Qt: Can't find "org/qtproject/qt5/android/extras/QtNative" class
    

    or

    A/QtBluetooth: Can't find class "org/qtproject/qt5/android/bluetooth/QtBluetoothBroadcastReceiver"
    

    both with registerNatives failed and a java.lang.ClassNotFoundException afterwards.
    How can i solve this issue?

    1 Reply Last reply
    0

    1/1

    20 May 2020, 08:31

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved