Light Blue Pointer
본문 바로가기
Developing/Trouble shooting

Spring Boot 시작 시 A problem occurred configuring root project > Could not resolve all files for configuration ':classpath'.

by Greedy 2023. 11. 23.

A problem occurred configuring root project 'gameLog'. > Could not resolve all files for configuration ':classpath'. > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.1.5. Required by: project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.1.5 > No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.1.5 was found. The consumer was configured to find a library for use during runtime, compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.4' but: - Variant 'apiElements' capability org.springframework.boot:spring-boot-gradle-plugin:3.1.5 declares a library, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares a component for use during compile-time, compatible with Java 17 and the consumer needed a component for use during runtime, compatible with Java 8 - Other compatible attribute: - Doesn't say anything about org.gradle.plugin.api-version (required '8.4') - Variant 'javadocElements' capability org.springframework.boot:spring-boot-gradle-plugin:3.1.5 declares a component for use during runtime, and its dependencies declared externally: - Incompatible because this component declares documentation and the consumer needed a library - Other compatible attributes: - Doesn't say anything about its target Java version (required compatibility with Java 8)

 

깃 클론 후

Java 버전이 안 맞다고 뭐라 뭐라 해서

sdk를 일단 프로젝트에 맞는 17로 바꿔봤음

그런데도 안 됨

 

1. 해결방법 1 

저걸 구글링하면 다들 자바를 재설치하고 해결됐다고 나옴

 

2. 해결방법 2

인텔리제이 세팅에 gradle 들어가서 여기에 JAVAHOME 으로 되어있던거 IntelliJ IDEA로 바꾸니까 sdk17 잘 붙어서 돌아감

빌드 잘 됨