Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.15.7, 6.4.2
-
None
-
-
09c7c0d28 (dev), edba6e2a0 (6.5), e20da13a9 (tqtc/lts-6.2)
-
DaVinci 72, DaVinci 73, DaVinci 74, DaVinci 75, 2023wk18FOQtforAndroid, 2023wk20FOQtforAndroid
Description
From Qt 5.15 wiki (https://wiki.qt.io/New_Features_in_Qt_5.15#Platform_Changes) I know that minSdkVersion & targetSdkVersion moved from AndroidManifest.xml to build.gradle (QTBUG-70817).
Easiest way to set the SdkVersions is from inside .pro using variables ANDROID_MIN_SDK_VERSION and ANDROID_TARGET_SDK_VERSION.
Seems that this is also valid for Qt6 / cmake: https://doc.qt.io/qt-6/qt-android-generate-deployment-settings.html#qt6-android-generate-deployment-settings
Qt 6.4 docs still says, that minimum required SDK has to be set inside Android Manifest: https://doc.qt.io/qt-6/android-publishing-to-googleplay.html - this will be overwritten by build process.
Also QtCreator doc is wrong and doesn't mention use of the variables: https://doc.qt.io/qtcreator/creator-deploying-android.html#android-manifest-editor
should I open a QtCreator Bug, too ?
Attachments
For Gerrit Dashboard: QTBUG-110022 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
459643,6 | Doc: Android: Update information about minimum and target SDK settings | dev | qt/qtdoc | Status: MERGED | +2 | 0 |
478877,2 | Doc: Android: Update information about minimum and target SDK settings | 6.5 | qt/qtdoc | Status: MERGED | +2 | 0 |
478878,2 | Doc: Android: Update information about minimum and target SDK settings | tqtc/lts-6.2 | qt/tqtc-qtdoc | Status: MERGED | +2 | 0 |