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

Wrong Android API used for builds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • None
    • 5.10.0
    • Build tools: qmake
    • None
    • Android
    • 2025wk34s2QtforAndroid

      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.

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

            assam Assam Boudjelthia
            ilya_b Ilya Bizyaev
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes