Scala返回“;加载包时出错,缺少依赖项';编译器镜像中的对象java.lang.object'&引用;
我是Scala新手,刚刚安装了IJ(intelliJIDEA 2017.2.4版) 但在创建项目后,出现以下错误:Scala返回“;加载包时出错,缺少依赖项';编译器镜像中的对象java.lang.object'&引用;,java,scala,intellij-idea,sbt,playframework-2.4,Java,Scala,Intellij Idea,Sbt,Playframework 2.4,我是Scala新手,刚刚安装了IJ(intelliJIDEA 2017.2.4版) 但在创建项目后,出现以下错误: SBT 'Gettingstarted' project refresh failed Error:Error:Error while importing SBT project:<br/>...<br/><pre>at sbt.MainLoop$.runWithNewLog(MainLoop.scala:63) at sbt.
SBT 'Gettingstarted' project refresh failed
Error:Error:Error while importing SBT project:<br/>...<br/><pre>at
sbt.MainLoop$.runWithNewLog(MainLoop.scala:63) at
sbt.MainLoop$.runAndClearLast(MainLoop.scala:46) at
sbt.MainLoop$.runLoggedLoop(MainLoop.scala:30) at
sbt.MainLoop$.runLogged(MainLoop.scala:22) at
sbt.StandardMain$.runManaged(Main.scala:109) at
sbt.xMain.run(Main.scala:38)
at
xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109) at
xsbt.boot.Launch$.withContextLoader(Launch.scala:128) at
xsbt.boot.Launch$.run(Launch.scala:109) at
xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35) at
xsbt.boot.Launch$.launch(Launch.scala:117) at
xsbt.boot.Launch$.apply(Launch.scala:18) at
xsbt.boot.Boot$.runImpl(Boot.scala:41) at
xsbt.boot.Boot$.main(Boot.scala:17)
at
xsbt.boot.Boot.main(Boot.scala) [error]
scala.reflect.internal.MissingRequirementError: object java.lang.Object in
compiler mirror not found. [error] Use 'last' for the full log. > > error:
error
while loading package, Missing dependency 'object java.lang.Object in
compiler
mirror', required by C:\Users\Dell\.sbt\boot\scala-2.10.6\lib\scala-
library.jar(scala/runtime/package.class)</pre><br/>See complete log in <a
href="file:/C:/Users/Dell/.IdeaIC2017.2/system/log/sbt.last.log">
file:/C:/Use/
Dell/.IdeaIC2017.2/system/log/sbt.last.log</a>
SBT“Gettingstarted”项目刷新失败
错误:错误:导入SBT项目时出错:
…
位于
sbt.MainLoop$.runWithNewLog(MainLoop.scala:63)位于
sbt.MainLoop$.runAndClearLast(MainLoop.scala:46)位于
sbt.MainLoop$.runLoggedLoop(MainLoop.scala:30)位于
sbt.MainLoop$.runLogged(MainLoop.scala:22)位于
sbt.StandardMain$.runManaged(Main.scala:109)位于
sbt.xMain.run(Main.scala:38)
在
xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)位于
xsbt.boot.Launch$.withContextLoader(Launch.scala:128)位于
xsbt.boot.Launch$.run(Launch.scala:109)位于
xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)位于
xsbt.boot.Launch$.Launch(Launch.scala:117)位于
xsbt.boot.Launch$.apply(Launch.scala:18)位于
xsbt.boot.boot$.runImpl(boot.scala:41)位于
xsbt.boot.boot$.main(boot.scala:17)
在
xsbt.boot.boot.main(boot.scala)[错误]
scala.reflect.internal.MissingRequirementError:中的对象java.lang.object
未找到编译器镜像。[错误]对完整日志使用“last”。>>错误:
错误
加载包时,中缺少依赖项对象java.lang.object
编译程序
镜像”,C:\Users\Dell\.sbt\boot\scala-2.10.6\lib\scala所需-
library.jar(scala/runtime/package.class)
请参阅完整的登录
以下是我正在使用的软件版本:
- Java版本9
- SBT:1.0.2
- 斯卡拉:2.11.11
我可以试着解决这个问题吗?目前,Scala/Play框架不完全支持JAVA 9。因此,最好坚持使用版本
1.8.0\u xxx
您是否可以格式化堆栈跟踪,使其不在一行Scala JDK 9上。在下面显示build.sbt.its:名称:=“新”版本:=“0.1”缩放厌恶:=“2.11.11”红色@哈希特卡卡