Skip to content

fix(android): take minSdkVersion from QT_ANDROID_MIN_SDK_VERSION - #156

Merged
1technophile merged 1 commit into
developmentfrom
fix/android-minsdk-from-qt
Oct 26, 2026
Merged

1technophile merged 1 commit into
developmentfrom
fix/android-minsdk-from-qt

Conversation

@1technophile

Copy link
Copy Markdown
Member

Description:

The Play Console upload on development is rejected with "Play automatic protection requires a minimum SDK version of 24 or higher. The uploaded App Bundle has a minimum SDK version of 23."

CMakeLists.txt sets QT_ANDROID_MIN_SDK_VERSION 28 (Android 9, the documented minimum and what Qt 6.10's Android libraries require), but assets/android/build.gradle hard-coded minSdkVersion 23, and gradle's value is the one that lands in the bundle. Use the qtMinSdkVersion property that androiddeployqt writes to gradle.properties, as Qt's own template does, so the two cannot drift again.

Verified with a local release build: aapt2 reports minSdkVersion '28' and targetSdkVersion '36' (unchanged).

Checklist:

  • The pull request is done against the latest development branch
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • I accept the DCO.

The Play Console upload on development is rejected with "Play automatic
protection requires a minimum SDK version of 24 or higher. The uploaded
App Bundle has a minimum SDK version of 23."

CMakeLists.txt sets QT_ANDROID_MIN_SDK_VERSION 28 (Android 9, the
documented minimum and what Qt 6.10's Android libraries require), but
assets/android/build.gradle hard-coded minSdkVersion 23, and gradle's value
is the one that lands in the bundle. Use the qtMinSdkVersion property that
androiddeployqt writes to gradle.properties, as Qt's own template does, so
the two cannot drift again.

Verified with a local release build: aapt2 reports minSdkVersion '28' and
targetSdkVersion '36' (unchanged).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@1technophile
1technophile merged commit 14ddaa1 into development Oct 26, 2026
10 checks passed
@1technophile
1technophile deleted the fix/android-minsdk-from-qt branch October 26, 2026 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant