Getting “cannot find Symbol” in Java project in Intellij

前端 未结 24 955
清酒与你
清酒与你 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:07

    I know this is an old question, but as per my recent experience, this happens because the build resources are either deleted or Idea cannot recognize them as the source.

    Wherever the error appears, provide sources for the folder/directory and this error must be resolved.

    Sometimes even when we assign sources for the whole folder, individual classes might still be unavailable. For novice users simple solution is to import a fresh copy and build the application again to be good to go.

    It is advisable to do a clean install after this.

提交回复
热议问题