简体   繁体   English

更新后IntelliJ不适用于Java 8

[英]IntelliJ does not work with Java 8 after update

So, 2 days ago everything was working perfectly. 因此,两天前,一切工作正常。 Yesterday I updated IntelliJ and now I' getting an error: 昨天我更新了IntelliJ,现在出现错误:

Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
The method stream() is undefined for the type List<PostVector>
Lambda expressions are allowed only at source level 1.8 or above
The method stream() is undefined for the type List<PostVector>
Lambda expressions are allowed only at source level 1.8 or above

PostVector is on of my classes. PostVector在我的课程中。

I have everything set to Java 8 (from SDK in IntelliJ to env. variables)... 我已将所有内容设置为Java 8(从IntelliJ中的SDK到环境变量)...

And yeah, in project in which I updated IntelliJ everything works fine, but this project in which it does not work is another project, so maybe there is a catch (but I still don't know how to fix it) 是的,在我更新了IntelliJ的项目中,一切正常,但是这个不起作用的项目是另一个项目,因此可能有一个问题(但是我仍然不知道如何解决)

You must wait for gwt 2.8. 您必须等待gwt 2.8。 Lambdas are not supported before gwt 2.8 version. gwt 2.8之前的版本不支持Lambda。

You can try 2.8.0-beta1. 您可以尝试2.8.0-beta1。

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

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