Android Studio Unsupported Java

Problem: After upgrading Android Studio Flamingo, the following error message appears

Unsupported Java. 
Your build is currently configured to use Java 17.0.2 and Gradle 7.0.2.

Possible solution:
 - Open Gradle wrapper settings, change `distributionUrl` property to use compatible Gradle version and reload the project

Solution: File -> Settings -> Build, Execution, Deployment -> Build Tools -> Gradle

Just modify the Gradle JDK to the JDK version installed locally, such as: JDK-11.0.15

Guess you like

Origin blog.csdn.net/hehota/article/details/130514341