斯卡拉,SBT错误
问题描述:
我是新来斯卡拉,刚刚安装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
可能有人建议我应该怎么办?
答
当前JAVA 9
不完全支持Scala/Play框架。所以更好地坚持版本
你能格式化堆栈跟踪,所以它不是全部在一行 –
斯卡拉[不支持](https://github.com/scala/scala-dev/issues/139 )JDK 9.显示你的build.sbt。 –
其下面:name:=“新” 版本:=“0.1” scalaVersion:=“2.11.11” 其中红色! –