I make this call to a static singleton instance from the class GameManager.java
.
HUD.getInstance().update(timeDelta);
HU
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
I was getting the same "cannot find symbol" error when I did Build -> Make Project
. I fixed this by deleting my Maven /target
folder, right clicking my project module and doing Maven -> Reimport
, and doing Build -> Rebuild Project
. This was on IntelliJ Idea 13.1.5.
It turns out the Maven -> Reimport
was key, since the problem resurfaced a few times before I finally did that.
This happened to me when I deleted a folder and then copy-pasted it back to the project.
Right-click project folder -> Rebuild
worked for me.
I know this is old, but for anyone else, make sure that the class that's missing is in the same package as the class where you get the error/where your calling it from.
If you are using Lombok, make sure you have enabled annotation processing.
For me - I tried these steps(Invalidate Cache & Restart, Maven Reimport)) but they didn't work. So I deleted the .idea
, .settings
, and .project
folder and tried - it worked.