Cannot resolve symbol really annoying

已回答

When on a git branch I remove some classes, then I switch another branch I get this error because Intellij cannot find removed class of the previous branch.

I then do all of this stuff:

  1. Rebuild project
  2. mvn clean install
  3. Invalidate caches / Restart

But project still doesn't compile when I run some JUnit test. I'm very disappointed

3

Hello,

Could you please provide some screemshots to clarify what symbols are not resolved?

0

Intellij didn't find some java classes that existed on project.

Finally had to remove .idea folder so all things back to normal

0

Do you face the issue again after removing .idea folder and switching branches? We have related issue on YouTrack: https://youtrack.jetbrains.com/issue/IDEA-116600

0

请先登录再写评论。