Getting “cannot find Symbol” in Java project in Intellij

前端 未结 24 963
清酒与你
清酒与你 2020-12-04 10:33

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

HUD.getInstance().update(timeDelta);

HU

24条回答
  •  不知归路
    2020-12-04 11:23

    I had the same problem, and turns out I had never completely compiled the fresh project. So right-clicking and selecting Compile'' (shift-cmd-F9 on mac) fixed it. It seems the compile on save does not 'see' non-compiled files.

    Marking the src folder as source did not help in my case.

提交回复
热议问题