Dawn

[ERROR] no candidates found for method call, project jdk is misconfigured 해결과정 본문

Spring

[ERROR] no candidates found for method call, project jdk is misconfigured 해결과정

woosikwoosik 2024. 9. 25. 09:01
반응형

이전에 작성했던 코드를 다시 확인하기 위해 프로젝트를 열었더니

시발점

어마어마한 숫자의 error가 발생했다...


No candidates found for method call plugins.

import가 제대로 되지 않아 gradle을 들어가니

?????

다 회색글씨 처리가 되어 있었다.

No candidates found for method call plugins

메서드 호출 플러그인을 찾을 수 없다고 나와

gradle 탭 -> 오른쪽 클릭 -> Reload Gradle Project -> 재부팅

대부분 이렇게 하면 해결된다고 하는데 나는 해결되지 않았다.


Project JDK is misconfigured

다시 class 파일로 가보니 위에 파란줄이 있었다.

Project JDK is misconfigured

프로젝트의 JDK가 잘못되어 있다고 한다.

ctrl + alt + shift + s 를 같이 누르고 platform Setting에서 SDKs로 이동하니 Classpath가 텅텅 비어있었다.

이와중에 Problems 100+...

여기서 + 버튼을 누르고 제거 후, 새로 다운을 받아주면 해결될 것이다. (제거는 안해도 되는듯?)

그리고 프로젝트를 실행하니

Unsupported Java. Your build is currently configured to use Java 23 and Gradle 8.5. Possible solution: - Use Java 19 as Gradle JVM: Open Gradle settings - Open Gradle wrapper settings, change
distributionUrl
property to use compatible Gradle version and reload the project

이런 오류를 또 보았다.

java 23으로 다운을 받았는데, gradle 8.5 버전과 맞지 않는다고, java 19로 바꾸거나, gradle 버전을 바꾸라고 한다.

JDK도 19 로다시 다운받고 gradle-wrapper.properties -> distributionUrl 에서도 8.5 -> 8.10 으로 바꿔주며 마무리 했다.

 

코드 돌려보고 싶었는데, db 같은 것들이 달라져서 돌려보지 못하고 오류만 해결했다...

반응형