Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-66442

Wrong Android API used for builds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.10.0
    • Build tools: qmake
    • None
    • Android

    Description

      My project uses a C++ library that requires functions only present in Android NDK 21 and above. So, in AndroidManifest.xml minimum and target API versions are set to 21.

      When I launch Qt Creator and start a build, it fails due to this function being undefined. I inspect the build log and see -D_ANDROID_API_=16. Then I open the manifest, set version to, say, 23, save, go back to 21, save, clean the build, and then the build uses API 21. This happens on every launch.


      With console build:


      ~/Qt/5.10.0/android_armv7/bin/qmake ../Project/Project.pro


      I also get API 16.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rampe Rami Potinkara
            ilya_b Ilya Bizyaev
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes