简体   繁体   English

Intellij随机错误

[英]Intellij random errors

I have a few problems with IntelliJ since a few days now. 自几天以来,我在使用IntelliJ时遇到了一些问题。 He keeps giving me errors while they aren't really errors, my program runs fine and the errors are always the same. 当错误不是真正的错误时,他一直在给我错误,我的程序运行良好,并且错误始终相同。 Mostly it's println , Override , LocalDate , Scanner and more. 通常是printlnOverrideLocalDateScanner等。

How do I resolve this problem? 我该如何解决这个问题? Every time I open a new project he will do the same. 每次我打开一个新项目时,他都会这样做。

http://prntscr.com/5pjlog

http://prntscr.com/5pjlw3

You need to define Project SDK, since you are using Java8 classes, set the ProjectSDK and language to Java 8. 由于您使用的是Java8类,因此需要定义Project SDK,将ProjectSDK和语言设置为Java 8。 在此处输入图片说明

Something is tangled here. 这里有些纠结。 Since you verified the SDK is set up correctly, can I suggest to just clear caches and Restart intellij. 既然您已验证SDK设置正确,我是否可以建议仅清除缓存并重新启动intellij。

Hope that helps! 希望有帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM