Getting “cannot find Symbol” in Java project in Intellij

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

    I know this thread is old but, another solution was to run

    $ mvn clean install -Dmaven.test.skip=true
    

    And on IntelliJ do CMD + Shift + A (mac os) -> type "Reimport all Maven projects".

    If that doesn't work, try forcing maven dependencies to be re-downloaded

    $ mvn clean -U install -Dmaven.test.skip=true
    

提交回复
热议问题