에러

[IntelliJ] Spring Boot Project 시작 시 Gradle 에러 Unable to find method

integerJI 2022. 5. 10. 11:46

Spring Boot Project를 시작할 때 Gradle에서 에러가 발생 하였다.

 

에러 전문

Unable to find method 'org.gradle.api.artifacts.result.ComponentSelectionReason.getDescription()Ljava/lang/String;'.
Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)</li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)</li><li>Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

 

이는 IntelliJ에서 첫 시작할 때 Spring Boot와 Gradle 버전이 맞지 않아 import 할 때 발생하는 에러이다.

 

버전을 낮추면 해결!

 

 

gradle\wrapper\gradle-wrapper.properties 오픈

 

 

Line 3 gradle-7.4.1 -->> 6.8.3으로 수정

 

수정 완료

 

 

Gradle 다시 Import

 

 

Import 완료!