Home > database >  Imports Unrecognized By IntelliJ when Getting A Project From GitHub
Imports Unrecognized By IntelliJ when Getting A Project From GitHub

Time:05-07

I've faced this problem quite a lot lately but I didn't care in the past and decided to rewrite the whole project I'm getting from GitHub but now when the project is enormous I can't do this anymore.

Here is a picture of the problem:

Picture

As you see the classes are already in their places but the import still failing I don't know why. I checked my SDK and it's already added so anyone have an idea why this happening?

CodePudding user response:

If it is a Maven project, open the Maven tab and click Reimport all dependencies button.

Another solution is to use the Terminal, just run mvn clean install command.

  • Related