Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28624

ANDROID_PLATFORM (API Level) is not set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • Qt Creator 9.0.2
    • Qt Creator 9.0.1
    • Android Support
    • None
    • Windows 11 22H2 (Build 22621.963)
      Qt Creator 9.0.1
      cmake 3.24.2
      ninja 1.11.0
      android ndk 23b
    • Android
    • 803fb4ce7 (9.0)

    Description

      ANDROID_NATIVE_API_LEVEL is set to 23, but it appears this is ignored in the toolchain wrapper of NDK 23b.

      Führe C:\Program Files\CMake\bin\cmake.exe -S H:/Tmp/QtTest/AndroidTemplate-Qt6-4-1 -B H:/Tmp/QtTest/build-AndroidTemplate-Qt6-4-1-Android_Qt_6_4_1_Clang_arm64_v8a-Release in H:\Tmp\QtTest\build-AndroidTemplate-Qt6-4-1-Android_Qt_6_4_1_Clang_arm64_v8a-Release aus.
      -- ANDROID_PLATFORM not set. Defaulting to minimum supported version 16.
      -- android-16 is not supported for arm64-v8a. Using minimum supported LP64 version 21.
      -- Configuring 'appAndroidTemplate-Qt6-4-1' for the following Android ABIs: arm64-v8a (default)
      -- Found android platform plugin at: H:/DevTools/Qt/6.4.1/android_arm64_v8a/./plugins/platforms/libplugins_platforms_qtforandroid_arm64-v8a.so
      -- Configuring done
      -- Generating done
      -- Build files have been written to: H:/Tmp/QtTest/build-AndroidTemplate-Qt6-4-1-Android_Qt_6_4_1_Clang_arm64_v8a-Release
      

      Workaround for this is to set ANDROID_PLATFORM initially.

      CMake has it´s own support for android now, but I guess you have reason to not use it? (Support of older NDK´s and their toolchain files?)

       -> CMake cross compiling for android

      Attachments

        Issue Links

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

          Activity

            People

              semlanik Alexey Edelev
              Marscho Marscho
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes