2
我是新來斯卡拉,剛剛安裝IJ(intelliJIDEA 2017年2月4日版) 但是在建立項目得到如下錯誤後:斯卡拉,SBT錯誤
enter code here
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>
誰能幫助我?
- Java版本9
- SBT:1.0.2
- 斯卡拉:2.11.11
可能有人建議我應該怎麼辦?
你能格式化堆棧跟蹤,所以它不是全部在一行 –
斯卡拉[不支持](https://github.com/scala/scala-dev/issues/139 )JDK 9.顯示你的build.sbt。 –
其下面:name:=「新」 版本:=「0.1」 scalaVersion:=「2.11.11」 其中紅色! –