当我为播放应用程序启动sbt shell时,我一直看到这些消息:
[warn] * com.typesafe.akka:akka-actor_2.11:2.5.21 is selected over {2.3.13, 2.4.20}
[warn] +- com.typesafe.akka:akka-slf4j_2.11:2.5.21 () (depends on 2.5.21)
[warn] +- com.typesafe.play:play_2.11:2.6.23 () (depends on 2.5.21)
[warn] +- com.typesafe.akka:akka-stream_2.11:2.5.21 () (depends on 2.5.21)
[warn] +- com.typesafe.akka:akka-parsing_2.11:10.0.15 () (depends on 2.4.20)
我该如何解决?我是否需要显式设置akka版本,使其不选择2.5.21?
我建议连接sbt-dependency-graph sbt插件并使用以下命令来确定哪些组件取决于akka-actor的版本
sbt <project>/dependencyTree
sbt "<project>/whatDependsOn <organization> <module> <revision>"
sbt <project>/evicted
提出组件依赖关系列表后,您有几种选择: