has the new gradle killed android builds ?
-
Hi Folks
During recent Android builds I can see that the build process is pulling in a new gradle 8.3, and starting the daemon.
Unfortunately something has changed during compile/install time as the app when running on Android the lineedits are messed up....
They kinda do a funky screen tear and filled in dark.....
Type away doesn't show anything, shrink the keyboard and navigate away....
Come back to page shows a populated lineedit
The code and builds didn't used to do that, code hasn't changed between compiles and deployments.
Can't currently find a way to roll back the gradle to see if it is at fault.
Kind Regards
Craig Butler
-
it's kinda like gl isn't there and on a go slow....
fairly easy to replicate for me;-
start a new Application (Qt) -> Qt Widgets Application
-
design the Forms -> mainwindow.ui
-
add 3 line edits in a column
-
add a Dail underneath
-
add a horizontal and a vertical slider
-
add a check box
-
select them all and add to a vertical layout
-
right click on qmainwindow and add the vertical layout to grid
-
compile and run on Android.
Try adding text via on screen keyboard to each lineedit, try messing with the dial and sliders, click on the checkbox.
For me it is like its working with a masssssssssive lag. The lineedits tear and text cut in half or sometimes not even appearing. Dial and sliders are slow to respond. Checkbox seems to refresh and wake the app up a little.
-
-
odd... am seeing this behaviour on Qt 6.7.3 and 6.8.0 - both pull in gradle 8.3
Not seeing it if I use Qt 6.5.3 - which pulls in gradle 8.0
-
@testmonkey I guess gradle version is a requirement from Java version in Android, not from Qt. I think you might be able to install and choose different version of gradle for your build.
From here:
https://docs.gradle.org/current/userguide/compatibility.html
For Java 20, gradle 8.3 is needed. It is likely that gradle 8.3 is for the default version of Java 20 in Qt. If you select Java 17, gradle 7.3 is required.Android and Java are compatible in version. You need to find that out.
-
seems to be related to;
https://forum.qt.io/topic/158512/qlineedit-in-android-no-text-visual