微智科技网
您的当前位置:首页Intellij IDEA中编写Scala程序报错:Error:scalac: 'jvm-1.8' is not a valid choice for '-target'

Intellij IDEA中编写Scala程序报错:Error:scalac: 'jvm-1.8' is not a valid choice for '-target'

来源:微智科技网

在Intellij IDEA中编写Scala程序报错:Error:scalac: ‘jvm-1.8’ is not a valid choice for ‘-target’。

解决方法:根据以下路径File->Settings -> Build, Execution, Deployment -> Compiler -> Scala Compiler打开对应页面,点击模块列表,将Additional compiler options中的-target:jvm-1.8修改为-target:jvm-1.7,然后apply即可。

因篇幅问题不能全部显示,请点此查看更多更全内容