Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Qt Creator/Android and external libraries

    Mobile and Embedded
    3
    4
    8930
    Loading More Posts
    • 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.
    • K
      kibsoft last edited by

      Is there a way to add external libs in the Package Configurations(Project settings) section?
      Even if I modify libs.xml manually Qt Creator overrides that file with its own data.

      1 Reply Last reply Reply Quote 0
      • K
        kibsoft last edited by

        I have found a workaround.
        You should add the following to your libs.xml
        @<array name="your_any_name">
        <item>library_name</item>
        </array>@

        and then replace the following line in your manifest:
        @<meta-data android:name="android.app.bundled_libs_resource_id" android:resource="@array/bundled_libs"/>@
        with
        @<meta-data android:name="android.app.bundled_libs_resource_id" android:resource="@array/your_any_name"/>@

        If somebody knows the better way it would be cool to hear it.

        1 Reply Last reply Reply Quote 2
        • D
          duddo last edited by

          Thanks for the workaround, now i can add my libraries!

          1 Reply Last reply Reply Quote 0
          • A
            Akash154 last edited by

            hey I have problem .I got what you have said above .But I don't understand actually in which folder should I place my library.I have created static library.And how to I give that path in .pro file .Local path is accepted when I run it on linux dekstop but path gives error when i try to build it for android.please help

            1 Reply Last reply Reply Quote 0
            • First post
              Last post