Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
6.0.0
-
None
-
NDK (Side by Side) 21.3.6528147
Android SDK Platform-Tools 30.0.5
Android SDK Build-Tools 30.0.3
(Also tested: Android SDK Build-Tools 29.0.3 and Android SDK Build-Tools 28.0.3)
Description
When building an APK on Qt 6.0.0 the configuration files for Android (AndroidManifest.xml, build.gradle) are not taken into account. Manually setting the ANDROID_PACKAGE_SOURCE_DIR (both in CMakeLists.txt and Qt Creator build options editor) gives the same output.
When browsing the CMake generated directory I can see generic build files (for example, the target SDK is set to 28, even though Qt documentation states 29 has been the default for a while).
Qt 5.15.2 builds as expected without needing to even manually set ANDROID_PACKAGE_SOURCE_DIR.
Now, I do not know if ANDROID_PACKAGE_SOURCE_DIR even has use in CMake, nor can I make educated guesses, but if it does not I'd assume it is something related to the switch from QMake.
Unrelated: The .aab (Android app bundle) build option has been removed from Qt 6.0.0 and I would appreciate knowing the reasoning behind.