Cannot resolve symbol 'String' and 'System'.

已回答

Hi. I just started using IntelliJ. Downloaded the JDK 25 first, worked for a bit, ran some code but now its giving me this error. I have tried a lot of things suggested by chatGPT and google but still the same issue. Tried uninstalling JDK 25 and downloaded JDK 21, that also didn't work. Can someone please help me? Thank you.

0
Hello,
Does it help if you do 'File -> Invalidate Caches' -> check the first three boxes -> 'Invalidate and Restart'?
If not, please attach a screenshot of the 'File | Project Structure' dialog -> "Project' and 'SDKs' screens.
1

Hi Arina Efremova. 

I had already tried clearing my caches by that method but it didn't work. I opened my laptop after 3 days and when I opened Intellij everything works fine now. Didn't do anything in between but all of a sudden it works fine now. I don't what happened!
Thanks for the help anyways.

0

Hi Hammadkhan12145 

Thanks for your update. Most likely, the issue is related to a necessary restart from the IDE after cleaning the caches, which sometimes occurs, or could also be related to another OS task running in the background that prevents the files/memory from being freed.

Have a great day!

0

请先登录再写评论。