

Unsupported Gradle JVM.
Your build is currently configured to use Java 17.0.11 and Gradle 5.6.4.
Possible solutions:
- Upgrade to Gradle 8.5 and re-sync
- Upgrade to Gradle 7.2 and re-sync
안드로이드 스튜디오 프로젝트 실행 시, 설치된 JDK와 프로젝트 설정의 gradle 버전 지원이 맞물리지 않아 발생하는 오류이다.
따라서 gradle 버전을 지원되는 자바 버전에 맞게 올리거나, 자바 버전을 gradle이 지원하는 버전에 맞게 내려야한다.
1. build.gradle의 dependencies { classpath 'com.android.tools.build:gradle:버전' }
아래 표(혹은, 주소)를 참고하여 변경해보자.
만약 gradle 버전을 변경하게 되면, 다음 두 문제를 마주하게 될 수 있다.
https://small-stepping.tistory.com/1213
에러: Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-downlo
Unable to find method ''void org.gradle.api.internal.DefaultDomainObjectSet.(java.lang.Class)'' 'void org.gradle.api.internal.DefaultDomainObjectSet.(java.lang.Class)' Gradle's dependency cache may be corrupt (this sometimes occurs af
small-stepping.tistory.com
https://small-stepping.tistory.com/1214
에러: Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-
A problem occurred evaluating project ':app'. > Failed to apply plugin 'com.android.internal.application'. > Could not create an instance of type com.android.build.gradle.internal.dsl.BaseAppModuleExtension. > Could not create an inst
small-stepping.tistory.com
위 두 개 에러 어디를 들어가든 마지막에 작성한 해결 방법은 똑같으니, 여러 시행착오를 거쳐보자.
자세한건 아래 주소를 참고해보자.
https://docs.gradle.org/current/userguide/compatibility.html
Compatibility Matrix
Gradle runs on the Java Virtual Machine (JVM), which is often provided by either a JDK or JRE. A JVM version between 8 and 23 is required to execute Gradle. JVM 24 and later versions are not yet supported. Executing the Gradle daemon with JVM 16 or earlier
docs.gradle.org
'개발 > Android Studio 에러' 카테고리의 다른 글

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!