更新后,IntelliJ无法与Java 8一起使用 [英] IntelliJ does not work with Java 8 after update
问题描述
所以,2天前一切都运转良好。昨天我更新了IntelliJ,现在我收到一个错误:
So, 2 days ago everything was working perfectly. Yesterday I updated IntelliJ and now I' getting an error:
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
是我的类。
我已将所有内容设置为Java 8(从IntelliJ中的SDK到env。变量)...
I have everything set to Java 8 (from SDK in IntelliJ to env. variables)...
是的,在我更新IntelliJ的项目中一切正常,但是这个项目不起作用是另一个项目,所以也许有一个问题(但我仍然不知道如何解决它)
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)
推荐答案
你必须等待gwt 2.8。在gwt 2.8版本之前不支持Lambda。
You must wait for gwt 2.8. Lambdas are not supported before gwt 2.8 version.
您可以尝试2.8.0-beta1。
You can try 2.8.0-beta1.
这篇关于更新后,IntelliJ无法与Java 8一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!