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. QtCreator keeps on using Android Platform 23 (Qt6.5)
Forum Updated to NodeBB v4.3 + New Features

QtCreator keeps on using Android Platform 23 (Qt6.5)

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 415 Views
  • 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.
  • L Offline
    L Offline
    laxn_pander
    wrote on 15 Jun 2023, 11:32 last edited by
    #1

    Hey all,

    I am beginning to get very frustrated with qtcreator falling back to ANDROID_PLATFORM=android-23.

    My setup is as follow:

    qt1.png

    With the following build configuration:

    qt2.png

    Yet, when I run CMake:

    qt3.png

    I've tried to set all flags I found to 33. I even tried to add a custom manifest and set minimum SDK levels without luck. Any idea what variable I need to change?

    Thanks and best regards,

    Alex

    L 1 Reply Last reply 15 Jun 2023, 14:07
    0
    • L laxn_pander
      15 Jun 2023, 11:32

      Hey all,

      I am beginning to get very frustrated with qtcreator falling back to ANDROID_PLATFORM=android-23.

      My setup is as follow:

      qt1.png

      With the following build configuration:

      qt2.png

      Yet, when I run CMake:

      qt3.png

      I've tried to set all flags I found to 33. I even tried to add a custom manifest and set minimum SDK levels without luck. Any idea what variable I need to change?

      Thanks and best regards,

      Alex

      L Offline
      L Offline
      lemons
      wrote on 15 Jun 2023, 14:07 last edited by
      #2

      Those are my currently working settings for Android target version 33 with Qt 5.15 (maybe this helps you):

      # project.pro
      android {
          QT += androidextras
          # ...
          ANDROID_MIN_SDK_VERSION = 21
          ANDROID_TARGET_SDK_VERSION = 33
      }
      
      # android/gradle.properties
      org.gradle.jvmargs=-Xmx2048m
      androidBuildToolsVersion=33.0.2
      androidCompileSdkVersion=33
      qtMinSdkVersion=21
      qtTargetSdkVersion=33
      
      # android/gradle/wrapper/gradle-wrapper.properties
      distributionBase=GRADLE_USER_HOME
      distributionPath=wrapper/dists
      distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
      zipStoreBase=GRADLE_USER_HOME
      zipStorePath=wrapper/dists
      
      L 1 Reply Last reply 16 Jun 2023, 11:46
      1
      • L lemons
        15 Jun 2023, 14:07

        Those are my currently working settings for Android target version 33 with Qt 5.15 (maybe this helps you):

        # project.pro
        android {
            QT += androidextras
            # ...
            ANDROID_MIN_SDK_VERSION = 21
            ANDROID_TARGET_SDK_VERSION = 33
        }
        
        # android/gradle.properties
        org.gradle.jvmargs=-Xmx2048m
        androidBuildToolsVersion=33.0.2
        androidCompileSdkVersion=33
        qtMinSdkVersion=21
        qtTargetSdkVersion=33
        
        # android/gradle/wrapper/gradle-wrapper.properties
        distributionBase=GRADLE_USER_HOME
        distributionPath=wrapper/dists
        distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
        zipStoreBase=GRADLE_USER_HOME
        zipStorePath=wrapper/dists
        
        L Offline
        L Offline
        laxn_pander
        wrote on 16 Jun 2023, 11:46 last edited by
        #3

        @lemons Thanks! Found a related bug report though:

        https://bugreports.qt.io/browse/QTCREATORBUG-29112?jql=text ~ "Defining ANDROID_PLATFORM in an Android kit's CMake"

        1 Reply Last reply
        0

        1/3

        15 Jun 2023, 11:32

        • Login

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