Ivailo Hristov6,297 Points
SLF4J and Lambda Expressions not supported
First problem is
"SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
I import different SLF4J tasks like slf4j-nop.jar slf4j-simple.jar, slf4j-log4j12.jar, slf4j-jdk14.jar i download them from maven repository and add by gradle and nothing...
also I have problems with java 8 it says "lambda expressions are not supported at this language level" i try all
File > Project Structure > Project > Project SDK: Change it to Java 1.8.XX File > Project Structure > Project > Language Level: SDK 8 (in my case SDK default was already 8) File > Project Structure > Modules > Sources > SDK 8 (in my case SDK default was already 8) File > Settings > Build, Execution, Deployment > Compiler > Java Compiler > Project bytecode version > 1.8 File > Settings > Build, Execution, Deployment > Compiler > Java Compiler > Per-module bytecode version > Target bytecode version > 1.8
but not work Thnks!
Seth KrogerTreehouse Moderator 56,313 Points
In build.gradle, if there is a line
sourceCompatibility = 1.something or
targetCompatibility = 1.something make sure it equals 1.8. If they aren't present then open Project Structure (Under the File menu or an icon with small blue squares near the right end of the toolbar.) Click Project on the left make sure the SDK and Project language level are 8.
Michael Chan1,353 Points
I'm still having the issue despite. Can someone help? I am using Spark 2.7.1 and my source compativility is 1.8.