为什么这么红? IntelliJ似乎认为无法找到/解决每个声明/方法 [英] Why so red? IntelliJ seems to think every declaration/method cannot be found/resolved

查看:97
本文介绍了为什么这么红? IntelliJ似乎认为无法找到/解决每个声明/方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚重新安装了已安装的IntelliJ,每个Java文件都会出现RED。我检查了JSDK,它是1.6。##。 Maven clean install build工作得很好。

I just re-installed installed IntelliJ, every Java file is coming up RED. I checked the JSDK, it is at 1.6.##. The Maven clean install build worked just fine.

如何解决这些错误错误?只需单击按钮就可以进行导航,这非常烦人。

How do I fix these false errors? It's very annoying not being navigate around with a click of buttons.

推荐答案

IntelliJ有时会自行混淆,即使没有外部Korgen所描述的变化(尽管这是一种很好的方式来重现它)。

IntelliJ sometimes gets confused all by itself, even without the external changes Korgen described (though that is a good way to consistently reproduce it).

单击文件 - >同步,IntelliJ应该会看到一切正常。

Click File -> Synchronize, and IntelliJ should see that everything is okay again.

如果这不起作用,IntelliJ的缓存可能会损坏(过去常常比现在发生的情况多得多);在这种情况下,重新生成它们

If that doesn't work, IntelliJ's caches might be corrupt (this used to happen a lot more often than it does now); in that case, regenerate them by

单击文件 - >使缓存无效并重新启动IDE

(尽管在重新创建缓存时加载项目需要一段时间)。

(though loading the project will take a while while the caches are recreated).

这篇关于为什么这么红? IntelliJ似乎认为无法找到/解决每个声明/方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆