I make this call to a static singleton instance from the class GameManager.java
.
HUD.getInstance().update(timeDelta);
HU
Make sure the source file of the java class you are trying to refer to has a .java
extension. It was .aj
in my case (I must have hit "Create aspect" instead of "Create class" when creating it). IntelliJ shows the same icon for this file as for "normal" class, but compiler does not see it when building.
Changing .aj
to .java
fixed it in my case.