Error java JDK isn‘t specified for module [How to Solve]

Solution:

The contents of. Idea are inconsistent. Maybe the same. Idea is used for two compilations, so it cannot be recognized. So

Delete the. Idea file and reopen the project to compile and run.

Read More: