Go to Build Settings > Android, and set Build System to Gradle to use the custom Gradle version . Go to Preferences > External Tools > Android > Gradle Installed with Unity. Clear the option, and specify a custom version of 5.6. 4 or later.
Read moreHow do I choose Gradle version?
You can specify the Gradle version in either the File > Project Structure > Project menu in Android Studio, or by editing the Gradle distribution reference in the gradle/wrapper/gradle-wrapper. properties file . The following example sets the Gradle version to 7.0.
Read moreHow do I change the Gradle version in Intellij?
Configure a Gradle version for a project
Read moreHow do I downgrade build Gradle version?
The following is my workaround:
Read moreDoes Gradle support Java 17?
Gradle now supports running on and building with Java 17 . In previous Gradle versions, running Gradle itself on Java 17 resulted in an error. JVM projects could have been built with Java 17 using toolchains. As of Gradle 7.3, both running Gradle itself and building JVM projects with Java 17 is fully supported.
Read moreWhat is Gradle version?
8 Answers. In Android Studio, go to File > Project Structure. Then select the “project” tab on the left. Your Gradle version will be displayed here .
Read more