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. Using Qt in a generic Android library
Forum Update on Monday, May 27th 2025

Using Qt in a generic Android library

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
android libraryandroid studio
1 Posts 1 Posters 229 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.
  • J Offline
    J Offline
    Jean38
    wrote on 7 Feb 2023, 10:35 last edited by
    #1

    Hello,
    I'm developping an Android library privately using some Qt classes (mainly Network with QThread). The user of this library will work with Android Studio.
    I'm currently abble to integrate and build the library to Android Studio project with CMake but the code is crashing when creating the QCoreApplication instance (I don't directly use it but it's mandatory for Qt). From what I understood the JNI setup is not done when loading Qt(Core?) ".so" because the "loadLibrary" is not called explicitly from the java code. Is it mandatory to do this call from Java code ? Or is there a different way to deal with that?
    Since I'm new to Android I may have missed some basic stuff/setup.
    Thanks

    1 Reply Last reply
    0

    1/1

    7 Feb 2023, 10:35

    • 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