Right now the entire build system is stuck at Gradle 7.2 and Android 33 because anything higher would require moving to Gradle 8. which is not backwards-compatible.
The official upgrade docs may be useful: https://un5n6892w35rdnn6pp8f6wr.julianrbryant.com/current/userguide/upgrading_version_7.html