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. Unable to Add Third party library
Forum Updated to NodeBB v4.3 + New Features

Unable to Add Third party library

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 2 Posters 2.3k Views 1 Watching
  • 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.
  • A Offline
    A Offline
    Abin
    wrote on last edited by
    #1

    Hi,

    I am trying to add and android library to my qt android project. But it fails while deploying.
    I followed steps as given in documentation : "Third-party Android Libraries":http://qt-project.org/doc/qt-5/android3rdpartylibs.html

    I get the error

    BUILD FAILED
    E:\Installations\ADT\adt-bundle-windows-x86-20131030\sdk\tools\ant\build.xml:577: ../android-build/libs/ resolve to a path with no project.properties file for project E:\WorkSpaces\Qt\Qt_WidgetApps\AndroidSerialPortTrials\ThirdPartyLib\build-ThirdPartyLib-Android_for_armeabi_v7a_GCC_4_8_Qt_5_3_0_Android_GCC_arm_4_8-Debug\android-build

    my project.properties

    android.library.reference.1=../android-build/libs/

    projectPath/android/

    • libs
    • AndroidManifest.xml
    • project.properties

    projectPath/android/libs/

    • xx.so
    • yy.jar

    I tried
    android.library.reference.1=libs/ as given in documentation
    android.library.reference.1=../android/libs/
    android.library.reference.1=./libs/

    But all gives error

    1 Reply Last reply
    0
    • GianlucaG Offline
      GianlucaG Offline
      Gianluca
      wrote on last edited by
      #2

      The library you want to include is provided as .JAR file or as Android project ??

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Abin
        wrote on last edited by
        #3

        .jar file

        1 Reply Last reply
        0
        • GianlucaG Offline
          GianlucaG Offline
          Gianluca
          wrote on last edited by
          #4

          So, you don't need to do anything !!
          Just put the .jar file into the android/lib source and that's it.
          Remove any project.properties you created, because you don't need to indicate any android.library.reference

          That instructions are for the case where the library is given to you as android project and need to be compiled.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Abin
            wrote on last edited by
            #5

            oh.. so now what I need to do is call java with qandroidextras?

            Thanks a lot

            1 Reply Last reply
            0
            • GianlucaG Offline
              GianlucaG Offline
              Gianluca
              wrote on last edited by
              #6

              Yes ! ... and please... mark this topic as solved if you are able to use the library.

              1 Reply Last reply
              0
              • A Offline
                A Offline
                Abin
                wrote on last edited by
                #7

                sure.. ill check this and update in the header

                1 Reply Last reply
                0

                • Login

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