快来帮帮忙。在编译过程中,我得到了以下几组错误;
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 =>尽管概括地说,问题在于“无形”,这是一个库,我已经将它作为一个依赖项(与解析器一起),
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots")
)
libraryDependencies ++= Seq(
"com.chuusai" %% "shapeless" % "2.3.2"
) 我希望有一个合适的建议作为解决办法。
发布于 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模块,而不是使用喷雾路由__。
libraryDependencies ++= "io.spray" %% "spray-routing-shapeless23" % "1.3.4",https://stackoverflow.com/questions/46343342
复制相似问题