I got a similar error but did not use Maven.
It’s resolved by updating the IntelliJ configuration:
- File -> Settings-> Build, Execution, Development -> Compiler -> Java Compiler
- update
Project bytecode version
to 8
I got a similar error but did not use Maven.
It’s resolved by updating the IntelliJ configuration:
Project bytecode version
to 8