我尝试使用sbt将 我需要的akka模块是 我使用IntelliJ和scala 2.12.1。有人有这个问题或者能以任何方式帮助我吗?akka-actor
和akka-remote
。奇怪的是,akka-actor
导入没有问题,但远程模块显示为未知工件。
答案 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"
)