Please nominate your Qt Champions for 2021!

Android package include soname libraries

  • Hi,

    I am trying to build a .apk package including freeImage librarie but I have this issue:

    E AndroidRuntime: Process: org.qtproject.example.neptuno, PID: 8743
    E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: library "" not found: needed by /data/app/~~P8GTfirfELNEWfAbc7pmAQ==/org.qtproject.example.neptuno-DEd97mtIH9Ec49fCAn8CGg==/lib/arm/ in namespace classloader-namespace
    E AndroidRuntime: at java.lang.Runtime.load0(
    E AndroidRuntime: at java.lang.System.load(
    E AndroidRuntime: at$
    E AndroidRuntime: at$
    E AndroidRuntime: at$
    E AndroidRuntime: at

    This problem is in runtime my apk has this structure:


    I think that the problem is Gradle does not copy .so.X file and my CMake link to instead of

    My CMakeLists.txt contains:

    target_link_libraries(neptuno Qt5::Sql Qt5::Quick Qt5::Qml Qt5::Network Qt5::NetworkAuth Qt5::Widgets

    I hope could help me because I am looking for information about this issue and I dont find anything.

    Thank you !!

  • Unfortunately Android does not support library versioning, so you cannot use as extra library. You should link your program directly with and copy it 'into apk'. If this isn't possible, then you may try to use static library.

  • @IntruderExcluder thank you so much ! I will follow your advices.

Log in to reply