【问题标题】:Could not access type LoggingAdapter in value akka.event无法访问值 akka.event 中的类型 LoggingAdapter
【发布时间】:2017-08-16 19:58:50
【问题描述】:

我从 Scala 2.10.8 迁移到 2.11.7,从 Akka 2.1.2 迁移到 2.3.14。我也对 *.sbt 和源代码做了很多更改。现在,我遇到了一些问题。我在网上查了,但我没有得到真正的原因。我认为喷雾版本不适合 Akka 版本。但是我必须为 Akka 2.3.14 使用哪个版本的 Spray,我还没有得到任何在线信息和 Akka 文档。

问题是:

[error] missing or invalid dependency detected while loading class file 'LoggingContext.class'.
[error] Could not access type LoggingAdapter in value akka.event,
[error] because it (or its dependencies) are missing. Check your build definition for
[error] missing or conflicting dependencies. (Re-run with `-Ylog-classpath` to see the problematic classpath.)
[error] A full rebuild may help if 'LoggingContext.class' was compiled against an incompatible version of akka.event.

我的项目依赖是这样的:

https://www.dropbox.com/s/tp1ruackt9tued6/dependencyTree2.txt?dl=0

【问题讨论】:

    标签: scala sbt akka spray


    【解决方案1】:

    如果你需要使用 spray,你可以使用的 Akka 的最新版本是 2.2.x,你可以看到 in their documentation

    如果您必须使用较新版本的 Akka,则必须使用 Akka HTTP 并关注他们的migration guide

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-05-26
      • 1970-01-01
      • 1970-01-01
      • 2020-09-09
      • 2021-04-08
      • 2023-03-21
      • 2021-09-19
      • 1970-01-01
      相关资源
      最近更新 更多