Reputation: 71
Hi I'm new to java and keep getting this error on and on in vs code. How do I solve this?
Upvotes: 6
Views: 12937
Reputation: 1
First click on the Java status menu
and then Clean Workspace Cache
and the warning should go away.
Upvotes: 0
Reputation: 13
Tried other solutions here but didn't work for me, what eventually worked for me was:
Upvotes: 0
Reputation: 447
Press "Ctrl + Shift + P", choose "java : Clean java Language Server workspace". If not run, right click on src, choose "add folder to java source path"
Upvotes: 11
Reputation: 378
You can solve this by opening your current project folder in vs code, then navigate to "Java Projects" > "properties" > "clean workspace".
Upvotes: 5