[英]Showing compile error in IntelliJ-idea in editor
您可以使缓存无效
file -> invalidate caches and restart
选择无效缓存中显示的前两个选项已起作用,您也可能在已打开的文件中遇到编译时错误,因此,请尝试关闭/打开这些显示错误的已打开文件。
清除文件系统缓存和本地历史记录:删除虚拟文件系统缓存以及存储在本地历史记录中的信息。
This action might be helpful for troubleshooting purposes when the usual cache invalidation is not enough to solve the problem.
Enabling this option also updates your settings for shared project indexes in Settings/ Preferences | Tools | Shared Indexes.
尝试删除项目下的 .idea 文件夹,完全关闭项目并重新导入,它对我有用。
我通过删除本地maven存储库来解决此问题,并还原Intellij的默认设置
Go 进行投影并重新导入。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.