본문 바로가기

프레임워크/Spring

[Spring Boot] CRUD 게시판 만들기 - 프로젝트 생성 후 빌드 에러

빌드 에러 메시지

* Infra

- IntelliJ IDEA 2019.3.3 x64

- java version "11.0.17"

- gradle 7.4.1

 

문제: 프로젝트 생성 후 빌드 에러 발생

Unable to find method 'org.gradle.api.artifacts.result.ComponentSelectionReason.getDescription()Ljava/lang/String;'.
Possible causes for this unexpected error include:
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
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) 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.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

 

해결: 프로젝트 폴더 board\gradle\wrapper\gradle-wrapper.properties 수정

gradle-7.4.1 -> gradle-6.8.3 으로 변경 후 

gradle 새로고침 ( Reimport All Gradle Projects )