Java 类文件的版本xxx错误,应为xxx
当我试图用sbt编译时,我得到了错误Java 类文件的版本xxx错误,应为xxx,java,scala,build,sbt,Java,Scala,Build,Sbt,当我试图用sbt编译时,我得到了错误 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. 问题是我在intellij idea项目sdk和项目语言级别中设置了Java11。 我还检查
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.
问题是我在intellij idea项目sdk和项目语言级别中设置了Java11。
我还检查了java-version和javac-version,他们都说是Java11
有什么想法吗?如果您有同样的问题:
谢谢,我不得不从project中删除所有目标文件夹并重新编译。现在它工作了,谢谢!