❤️作者简介:大家好,我是小虚竹。Java领域优质创作者🏆,CSDN博客专家认证🏆,华为云享专家认证🏆
❤️技术活,该赏
❤️点赞 👍 收藏 ⭐再看,养成习惯
问题:PSI and index do not match
问题
event Log里显示 PSI and index do not match
解决方案
File–> Invalidate caches /restart


解决方案就是上述截图的步骤,清除缓存。
问题:Error:java: Compilation failed: internal java compiler error
问题
Error:java: Compilation failed: internal java compiler error
解决方案
解决方案1:

要是没有跟图上一样的呢,就点击右边的把自己项目的模块添加上,选择自己项目需要的jdk对应版本。再次编译就可以啦。
解决方案2:
在setting–>Build,Execution,Deployment–>Compiler 中找到build process heap size(Mbytes):700改为1024(视情况而定)修改堆大小

问题:pom.xml提示Element connectors is not allowed here
问题
pom.xml提示Element connectors is not allowed here
解决方案
解决方案1:
重启IDEA就解决了
原因:这可能是Intellj软件的一个bug,有时候它不能正确的识别一些配置属性(即使相应的插件有这个属性)
只出现过一次,所以没有截图,可惜了
解决方案2:
粉丝分享的方案:
重建一个pom copy原pom里的内容到新pom,实测有效
问题:出现private field ‘xxx‘ is never assigned
问题
在IDEA编译器里,spring项目中使用@Autowired注解,出现private field ‘xxx’ is never assigned警告

解决方案
解决方案:
-
在变量上单击使光标在变量上.
-
按Alt+Enter快捷键,显示

-
上下键选中回车或者鼠标单击途中高亮的那个选项即可.
今天是持续写作的第 20 / 100 天。
可以关注我,点赞我、评论我、收藏我啦。

本文介绍了IntelliJ IDEA在使用过程中遇到的一些常见问题,如PSI and index do not match、Compilation failed: internal java compiler error、pom.xml错误提示等,并提供了详细的解决方案,包括清除缓存、设置编译器参数、检查模块配置和调整IDE设置等。
6080

被折叠的 条评论
为什么被折叠?



