首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >类路径中缺少符号'type shapeless.LeftFolder‘

类路径中缺少符号'type shapeless.LeftFolder‘
EN

Stack Overflow用户
提问于 2017-09-21 11:57:44
回答 1查看 1.9K关注 0票数 0

快来帮帮忙。在编译过程中,我得到了以下几组错误;

代码语言:javascript
复制
Error:(38, 21) Symbol 'type shapeless.HListerAux' is missing from the classpath.
This symbol is required by 'value spray.routing.directives.ParamDefMagnet2.hla'.
Make sure that type HListerAux is in your classpath and check for conflicting dependencies with `-Ylog-classpath`.
A full rebuild may help if 'ParamDefMagnet2.class' was compiled against an incompatible version of shapeless.
          parameter('id) { id =>

Error:(38, 21) Symbol 'type shapeless.Poly.Case2' is missing from the classpath.
This symbol is required by 'method spray.routing.directives.ParamDefMagnet2.MapReduce.from'.
Make sure that type Case2 is in your classpath and check for conflicting dependencies with `-Ylog-classpath`.
A full rebuild may help if 'ParamDefMagnet2.class' was compiled against an incompatible version of shapeless.Poly.
          parameter('id) { id =>

Error:(38, 21) Symbol 'type shapeless.PrependAux' is missing from the classpath.
This symbol is required by 'value spray.routing.directives.ParamDefMagnet2.MapReduce.ev'.
Make sure that type PrependAux is in your classpath and check for conflicting dependencies with `-Ylog-classpath`.
A full rebuild may help if 'ParamDefMagnet2.class' was compiled against an incompatible version of shapeless.
          parameter('id) { id =>

Error:(38, 21) Symbol 'type shapeless.HListerAux' is missing from the classpath.
This symbol is required by 'value spray.routing.directives.ParamDefMagnet2.hla'.
Make sure that type HListerAux is in your classpath and check for conflicting dependencies with `-Ylog-classpath`.
A full rebuild may help if 'ParamDefMagnet2.class' was compiled against an incompatible version of shapeless.
          parameter('id) { id =>

尽管概括地说,问题在于“无形”,这是一个库,我已经将它作为一个依赖项(与解析器一起),

代码语言:javascript
复制
resolvers ++= Seq(
  Resolver.sonatypeRepo("releases"),
  Resolver.sonatypeRepo("snapshots")
)

libraryDependencies ++= Seq(
  "com.chuusai" %% "shapeless" % "2.3.2"
) 

我希望有一个合适的建议作为解决办法。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-12-31 05:27:35

我知道怎么解决这个问题,我以前也遇到过这个问题。这是问题的非形状版本,仔细阅读下面的嗅觉,您将解决这个问题。

如果您想在您的应用程序中使用非成形和喷雾路由,那么您需要选择针对您想要使用的无形状版本构建的spray(-routing)版本。对于无型1.2.4,您应该使用喷雾1.1.4,1.2.4或1.3.4和喷雾路由模块。不再支持无形状的2.0.0。对于无形状的2.3.0,您应该使用 1.3.4 (Scala2.10或Scala2.11)和喷雾路由-shapeless23模块,而不是使用喷雾路由__。

代码语言:javascript
复制
libraryDependencies ++= "io.spray" %% "spray-routing-shapeless23" % "1.3.4",
票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46343342

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档