[Interest] Building a Qt app with target SDK 33 on Android with the latest Qt Creator 11.0.3

ekke ekke at ekkes-corner.org
Tue Nov 21 13:10:55 CET 2023


Hi Nuno,

yep - you should set these variables in .pro:

ANDROID_MIN_SDK_VERSION = "21"
ANDROID_TARGET_SDK_VERSION = "33"

QMake will put them into gradle.properties

ekke

Am 21.11.23 um 11:13 schrieb Nuno Santos:
> Ekke,
>
> Thanks for your reply.
>
> I’m still using qmake. I could select the Android Build Platform SDK as android-33
>
> But the build would still get targeted to 31
>
> But I have discovered that setting ANDROID_TARGET_SDK_VERSION variable on qmake set to 33 does the trick.
>
> Best regards,
>
> Nuno
>
>> On 21 Nov 2023, at 10:07, ekke <ekke at ekkes-corner.org> wrote:
>>
>> In QtCreator, Build Android APK
>> can you select Android Build Platform SDK: android-33
>> and Android Build-tools version 33.0.2 ?
>>
>> are you building with QMake or CMake, for Qt 5.15 or 6.6 ?
>>
>> Am 21.11.23 um 10:25 schrieb Nuno Santos:
>>> Hi,
>>>
>>> I’m having issues in build an app targeting SDK 33 with Qt Creator.
>>>
>>> No matter what I do I have always end up with a build targeting SDK 31.
>>>
>>> I’m using the latest Qt Creator 11.0.3
>>>
>>> Does anyone knows how to work this around?
>>>
>>> Thanks!
>>>
>>> Regards,
>>>
>>> Nuno
>>> _______________________________________________
>>> Interest mailing list
>>> Interest at qt-project.org
>>> https://lists.qt-project.org/listinfo/interest
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> https://lists.qt-project.org/listinfo/interest



More information about the Interest mailing list