Akka运行出错:AKKA: missing or invalid dependency detected while loading class file 'ActorSystem.class'

来源:互联网 发布:怪物猎人ol数据互通 编辑:程序博客网 时间:2024/06/04 08:33

运行akak项目的时候,只添加了akka-actor_2.11-2.3.4.jar包,导致编译报错:

Error:scalac: missing or invalid dependency detected while loading class file 'ActorSystem.class'.

Could not access term config in value com.typesafe,
because it (or its dependencies) are missing. Check your build definition for
missing or conflicting dependencies. (Re-run with `-Ylog-classpath` to see the problematic classpath.)

A full rebuild may help if 'ActorSystem.class' was compiled against an incompatible version of com.typesafe.

解决方案,找到lib下的config-1.2.1.jar,加入。运行正常。

1 0
原创粉丝点击