Getting "cannot find Symbol" in Java project in Intellij

joe picture joe · Aug 26, 2012 · Viewed 144.1k times · Source

I make this call to a static singleton instance from the class GameManager.java.

HUD.getInstance().update(timeDelta);

HUD.java contains the HUD class as well as two other related classes, HUDTextElement and HUDElement. All the classes are in the same root path ../src/org/mypackage.

However, when compiling this java project in IntelliJ I get cannot find Symbol HUD on the line I make the HUD.getInstance() call.

This exact same code compiles just fine in eclipse, any idea what the problem is?

Answer

tiboo picture tiboo · Dec 10, 2016

Select Build->Rebuild Project will solve it