Details
-
Task
-
Resolution: Done
-
P2: Important
-
None
-
Qt Creator 5.0.1
-
None
-
-
2022wk28FOQtforAndroid
Description
Since the fix of QTBUG-70817 targetSdkVersion minSdkVersion need to be removed from the AndroidManifest.xml file and put in the defaultConfig section of the projects build.gradle file manually by editing these files as plain text files.
There is no method of settings these 2 values in Qt Creator.
As the compileSdkVersion is set by the "Android build SDK" value in the Build Android APK section of QT Creators Build Settings (resulting in androidCompileSdkVersion in the gradle.properties file ) , it makes sense to include the minSdkVersion and targetSdkVersion here to, instead of having the build.gradle point per default to the qtMinSdkVersion and qtTargetSdkVersion
Taking any project and building it as is can now result in a situation where although the user has set the build SDK to 30, Google Play store refuses it having the targetSdkVersion = qtTargetSdkVersion = 28 and also violating the common sense rule :
minSdkVersion <= targetSdkVersion == compileSdkVersion