IntellijIDEA can not find Java built in classes.
已回答
Hello, IntellijIDEA can not find built in Java classes. For example,
I've tried invalidating the cache, but it only works once after restarting and then the problem shows up again.
What should I do?
请先登录再写评论。
Try updating to IntelliJ IDEA 2021.1.1 where several related bugs were fixed: https://confluence.jetbrains.com/display/IDEADEV/IDEA+2021.1+latest+builds
If it does not help, please share a sample project where this could be reproduced (including .idea directory)
I am using following version,
IntelliJ IDEA 2021.1 (Ultimate Edition) Build #IU-211.6693.111, built on April 6, 2021
I have not restarted IntellijIDEA since the last time I've rebuilt the cache. I'll share the project next time when I face this issue.
Try 2021.1.1 (next minor version after 2021.1). https://confluence.jetbrains.com/display/IDEADEV/IDEA+2021.1+latest+builds
Some indexing- and cache-related bugs were fixed inside.
I am currently updating to 2021.1.1 by setting my toolbox update to 'Release and Early Access Program'. Is that the only way? I am under the assumptions things do tend to break in EAP and hence not safe for regular use.
> Is that the only way?
Not only, but one of the easiest ways.
Another one is to use ToolBox: https://www.jetbrains.com/toolbox-app/
Using ToolBox you can install EAP near the stable release: https://i.imgur.com/sRFK3BZ.png
I am using the Toolbox to upgrade. But I am worries that bugs that have not been ironed out will show up in EPA. Its called early access for that reason, right?
IMHO, it is more stable than 2021.1, as most of the changes are bug fixes.
Is it safe to assume that it will always be that case? If so, I'll leave that setting as is.