【发布时间】:2020-07-01 17:55:03
【问题描述】:
当我尝试用 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 和项目语言级别设置为 java 11。 我还检查了 java -version 和 javac -version,他们都说它是 java 11。
有什么想法吗?
【问题讨论】:
-
谢谢,我必须从项目中删除所有目标文件夹并重新编译。现在可以了,谢谢!