Failed to resolve SDK
Asked Answered
K

4

9

On my first post I am using Inteliij and I have problem with my project. I was make project in Spring Boot. All works fine on this computer. Today when I copy this project from my computer to another I have a trouble when i try run project with "Failed to resolve SDK try to Find SDK". When i click on blue link, it dosn't work.

information about problem.

I am checking Settings=>build..=>compiler=>java compiler.java compiler and project structure=>SDKs. SDKAll looks like good. I don't have any idea why this dosn't work. Maybe someone have similar problem and You know how to solve this issue.

Thanks.

EDIT: GatePass

Keef answered 16/1, 2023 at 10:0 Comment(3)
Try to close the project (File | Close Project), close the IDE, open the project in OS file manager and delete the .idea directory. Re-import the project as per jetbrains.com/help/idea/… and configure JDK from scratch under (File | Project Structure | SDKs) and (File | Project Structure | Project)Dwelt
You are awesome! Now i can run my project! ThanksKeef
It is possible the Run/Debug Configuration settings (copied from another computer?) don't match the project settingsTorch
A
28

I encountered the same problem as you. My solution is to click Edit Configurations on the left side of the run button, and select to modify jdk in the pop-up interface.

enter image description here

Ambrosial answered 30/3, 2023 at 6:43 Comment(2)
Oh man, that's silly. This is the accepted answer for me.Cherri
I stumbled into this issue too! So easy to fix, but something I never thought of, thank you!Gamete
M
2

Check the path on Run/debug configuration dialog: enter image description here

Matthei answered 22/6, 2023 at 21:28 Comment(1)
How can it be opened? Please add a little more detail.Syrupy
S
0

Your Intellij is set to use the SDK but your project isn't. File -> Project structure -> Project -> Project SDK enter image description here

Separates answered 16/1, 2023 at 10:8 Comment(1)
I have choosed SDK on 18. I was trying change to another java version, but I still have this same problem.Keef
E
0

I was getting the same message while running the Flink java project in InteliiJ Idea. I deleted the .idea folder from project and rebuild the project. Then it resolved.

enter image description here

Erik answered 27/4, 2023 at 10:23 Comment(1)
Remove .idea folder, rebuild the project and try again.Wheatworm

© 2022 - 2025 — McMap. All rights reserved.