Your build is currently configured to use Java 17.0.6 and Gradle 6.9.

Lee young-jun
Aug 13, 2023

--

Recently, I upgraded Android Studio on my MacBook, but encountered the following error.

I check my java version, but it was 11 not 17.
Therefore I sought help from GPT, and they provided a solution to change the SDK location.

However I couldn’t find anything to select SDK Version in SDK Location.

JDK location was moved to go to Gradle Settings.

I could select JDK 11 from Gradle JDK item.

After cleaning the project, the build was successful.

--

--

No responses yet