본문 바로가기
java/gradle

gradle 버전이 낮다고 빌드가 되지 않을때 Spring Boot plugin requires Gradle 6.8.x, 6.9.x, or 7.x. The current version is Gradle

by 새로운 도전을 위한 한걸음 2022. 3. 9.

Spring Boot plugin requires Gradle 6.8.x, 6.9.x, or 7.x. The current version is Gradle

 

갑자기 gradle 버전이 낮다고 빌드가 되지 않을때

에러 내용 :  

* What went wrong:
A problem occurred evaluating root project 'test'.
> Failed to apply plugin [id 'org.springframework.boot']
   > Spring Boot plugin requires Gradle 6.8.x, 6.9.x, or 7.x. The current version is Gradle 6.0.1

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s

 

## 해결방법 1

버전 확인  

gradle -v

gradlew -v

둘중 하나 확인 해서 버전이 높은 것으로 실행 

 

## 해결방법 2

내컴퓨터 -> 속성 -> 시스템 정보

고급 시스템 설정

환경변수 설정에서 

path  클릭후 

gradle  변수가 중복으로 설정되어있는지 체크후 중복 값을 제거  

후에 빌드 실행