Solution:
File>>project structure>>Modules
Identify Sources on the java path.
If there is no path, select Add Content Root on the right and select the current project directory.
Solution:
File>>project structure>>Modules
Identify Sources on the java path.
If there is no path, select Add Content Root on the right and select the current project directory.