deprecated gradle

I have a game I want to publish to Google play store, but the game file has gradle 7.5 and I have gradle 8.0. Do I downgrade my gradle or can I change the gradle in the game file.

It is totally unclear to me what you are asking.
What game has which Gradle where and how does it influence which Gradle you use?
If you want help here, I fear you need to provide way more information than that highly condensed sentence.
Or maybe you should ask the maintainer of that “game file” whatever it is you are talking about.