IntelliJ IDEA can't setup JDK

intellij-idea, java, settings

Solution

`File` | `Invalidate Caches` is the first thing you should try in case of such issues.

Problem

I'm trying to setup JDK in IntelliJ IDEA and whatever I do, or whatever JDK version I select, nothing happens. The following situation remains: So I told IDEA what JDK it should use, but it still asks me to setup a JDK. Is this a bug or am I missing something? Can I apply any workaround to make everything work as usual? ADDITION The steps which I go through setting up the JDK: situation before setting up: the first step: the second step: the third step: the situation after setting up JDK: SDKs: module settings:

Original source