When I try to compile with sbt I get the error
cannot acces org.xxx bad class file: C\:Users\xxx class file has wrong version 57.0, should be 55.0 Please remove or make sure it appears in the correct subdirectory of the classpath.
The problem is that I've set in intellij idea project sdk and project language level to java 11. Also I've checked with java -version and javac -version and they both say it's java 11.
Any ideas?