I'm using IntelliJ Idea and I get this error.
Lamba expressions are not supported in -source 1.6
Got this when I updated from 2016 to the 2017 version of the community edition after I did something with gradle.
Settings: Java compiler: Project bytecode version: 1.8 Modules bytecode version: 1.8 Project SDK: 1.8 Project language level: default(8) Modules 1.8 as well
java -version
command. If by some reason you have 1.6 version then uninstall it or setJAVA_HOME
environment variable tojre_1.8.X/bin
directory. – Aleksei Budiak