Automatically upgrade agp Android Grade Plugin in Android Studio

Hello, I could use some help here. Every time I have a new project, I go through the following MANUAL process.
9:37 AM * daemon started successfully
9:38 AM Gradle sync started
9:39 AM Gradle sync finished in 1 m 17 s 178 ms
9:39 AM Project update recommended: Android Gradle Plugin can be upgraded.

Then I have to MANUALLY upgrade AGP to 7.22 from 4.22 that always the default.
How do I get it to AUTOMATICALLY upgrade and use 7.22 AGP version. aka change default to 7.22 version?
thanks

How do you start “a new project”?
If it is by some Android Studio functionality, you should probably ask Android Studio folks or documentation.

Hello @Vampire
I get the initial build from Unity and then open it from Android Studio to complete the build. thanks.

Then I guess Unity puts that version there and you have to ask them how to influence the version.