使用SBT导入akka模块

时间:2017-04-26 10:26:01

标签: scala intellij-idea set akka

我尝试使用sbt将

我需要的akka​​模块是akka-actorakka-remote。奇怪的是,akka-actor导入没有问题,但远程模块显示为未知工件。

我使用IntelliJ和scala 2.12.1。有人有这个问题或者能以任何方式帮助我吗?

enter image description here

1 个答案:

答案 0 :(得分:1)

尝试在两个libraryDependencies

之间留一个空行
libraryDependencies += "com.typesafe.akka" %% "akka-actor" % "2.5.0"

libraryDependencies += "com.typesafe.akka" %% "akka-remote" % "2.5.0"

或者将它们保存在Seq

libraryDependencies ++= Seq(
  "com.typesafe.akka" %% "akka-actor" % "2.5.0",
  "com.typesafe.akka" %% "akka-remote" % "2.5.0"
)