IDEA setting JDK invalid problem solution

All jdk class library methods in IDEA cannot be found, the code is called red, and setting jdk is also invalid.
When I typed the code today, the computer unexpectedly had a blue screen (yes, the system is Windows10). When I restarted IDEA, the code was red, indicating that the JDK could not be found. In fact, the JDK has been correctly configured and imported, multiple versions have been replaced, the code has been re-imported countless times, and everything is the same - IDEA keeps prompting that the JDK is not set.

 The project settings are as shown below, and everything looks completely ok.

 

 

 
 After setting the problem still persists:
  Troubleshooting ideas:
1. Exclude code problems, roll back the code to the previous version, the problem remains
2. Exclude the project setting problem, checkout the project again, the problem is still the same; import other projects, there are similar problems
3. From this, it can be basically confirmed that it is the problem of the IDEA tool itself, Google [File]->[Invalidate Caches], the problem is solved

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326571873&siteId=291194637