IntelliJ IDEA“无法解析符号"和“无法解决的方法" [英] IntelliJ IDEA "cannot resolve symbol" and "cannot resolve method"
问题描述
IntelliJ IDEA 无法解析内置 JVM 类型和方法的常见原因是什么?例如,当我将鼠标悬停在 String
上时,工具提示会显示无法解析符号 'String'".就好像 IntelliJ 不知道 JVM 在哪里.
What are common causes for IntelliJ IDEA not being able to resolve built-in JVM types and methods? For example, when I mouse over String
the tooltip says "Cannot resolve symbol 'String'". It's as if IntelliJ has doesn't know where the JVM is.
顺便说一下,我运行的是 OS X 10.6.6.一切正常,直到我今天早上运行系统更新.
By the way, I am running OS X 10.6.6. Everything was working fine until I ran the system update this morning.
推荐答案
很可能 JDK 配置无效,尝试删除并重新添加 JDK,因为我已经 在相关问题中描述此处.
Most likely JDK configuration is not valid, try to remove and add the JDK again as I've described in the related question here.
这篇关于IntelliJ IDEA“无法解析符号"和“无法解决的方法"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!