Much of the gradle handling code in the Android Plugin
Is very similar to gradle handling code in androiddeployqt:
I believe it was copied from Qt Creator to Qt a while back and slightly diverged in the meantime.
Also, by coincidence, the manipulation of gradle files by the Android plugin got deactivated a few Years, ago:
Shall the code in Qt Creator be re-activated? Or should it be removed?