To Solve Error:java: invalid target release: 11 Error To resolve this issue I’ve changed File->Project Structure->Modules ->> Language level to 10 . And check File -> Settings -> Build, Execution, Deployment -> Compiler -> Java Compiler ->> Project bytecode and Per-module bytecode versions.