06-30 00:00
Notice
Recent Posts
Recent Comments
06-30 00:00
«   2024/06   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
Archives
Today
Total
관리 메뉴

pear

[android] android studio build setting issue - Unsupported Java. Your build is currently configured to use Java 17.0.6 and Gradle 본문

android

[android] android studio build setting issue - Unsupported Java. Your build is currently configured to use Java 17.0.6 and Gradle

pearlab 2023. 6. 16. 10:19

android studio update

 

The latest android studio update uses gradle 7.x.

When loading a project that uses gradle 5.x or lower, follow the guide.
use gradle build java 17.x

 

error message

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

Possible solution:
 - Upgrade Gradle wrapper to 7.x version and re-import the project

 

 

If choose Upgrade Gradle wrapper to 7.x then need to additional update project setting

But, You can use it simply by changing the gradle jdk version.

 

setting gradle JDK version menu(mac standard)

menu bar -> android studio -> preferences...-> Build, Execution, Deployment -> Build Tools -> Gradle

 

 

 

 

example android studio version