Android API - 35 issues in Qt 5.15.2
-
@Stamp_it thx testing this.
so it seems you should try the other way by @bchimp as discussed at Qt Discord Server:
in your android templates directory under res/values/themes.xml you put this<resources xmlns:tools="http://schemas.android.com/tools"> <style name="Theme.rando" parent="android:Theme.DeviceDefault.DayNight"> <item name="android:windowOptOutEdgeToEdgeEnforcement">true</item> </style> </resources>obviously change the style name to whatever you are using. then in AndroidManifest in the "application" part, add this:
android:theme="@style/Theme.rando"have not tried by myself
@ekkescorner Ok, Thanks for replying, I will check this out.
-
@ekkescorner Ok, Thanks for replying, I will check this out.
@Stamp_it if it also doesn't work, then probably because you need newer templates as used by Qt 6 ?
then you should consider to use MobileUI, which is working on Qt 5.15 and Qt 6. -
@Stamp_it if it also doesn't work, then probably because you need newer templates as used by Qt 6 ?
then you should consider to use MobileUI, which is working on Qt 5.15 and Qt 6.@ekkescorner Thank for replying.
Now I am working in Qt6.6.3, With Android -35, Built the application Successfully, But on android device it shows only a white blank screen with the Name of the application at the top -
@ekkescorner Thank for replying.
Now I am working in Qt6.6.3, With Android -35, Built the application Successfully, But on android device it shows only a white blank screen with the Name of the application at the top -
@Stamp_it would also recommend to use 6.9.1
-
And here's what Qt says, if you want to opt-out from Android-35 edge-to-edge:
you have to add styles.xml and add in Manifest... activity... android:theme="@style/NormalTheme"
see the details here:
https://codereview.qt-project.org/c/qt/qtbase/+/630376 -
@JoeCFD I searched but couldn't find any relevant posts. On my end, using NDK 21 + Java 1.8 + Build-Tools 34.0.0 compiles successfully. However, after switching Build-Tools to version 35, it no longer works. I'm wondering if Qt5 is no longer buildable on the Android 35 platform?
-
https://developer.android.com/build/jdks //scroll down. I think you need 34 and Java 17
https://docs.gradle.org/current/userguide/compatibility.html