Your build is currently configured to use Java 17.0.7 and Gradle 6.1.1.

19-May-2024

Your build is currently configured to use Java 17.0.7 and Gradle 6.1.1.

Error:
Unsupported Java.
Your build is currently configured to use Java 17.0.7 and Gradle 6.1.1.



Solution :

File->Settings -> Build, Execution, Deployment-> Build Tools -> Gradle
Change Gradle Jdk then set 1.8





After making these changes, sync your project with Gradle and rebuild it. This can be done by clicking on the "Sync Now" link in the bar that appears at the top of Android Studio when you modify the Gradle files.


First Image
First Image
First Image
First Image