2017-09-21 25 views
0

ここでは簡単に手助けします。コンパイル時に私は以下のエラーを受け取ります。シンボル 'type shapeless.LeftFolder'がクラスパスにありません

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" 
) 

、私はすでに(レゾルバ付き)などの依存関係として含まれているライブラリ、「型崩れ」である、が、私は、適切な勧告をいただければ幸いです修正として。

答えて

1

私はそれを解決する方法を知っています。私はこれまでにこの問題に遭遇しました。 形容詞の問題です。次の文句を注意深く読んでください。この問題は解決します。

シェイプレスバージョン アプリケーションでシェーピングとスプレールーティングを使用する場合は、使用するシェーピングレスリリースに対して構築されたスプレーのバージョン(ルート)を選択する必要があります。 シェイプレスの場合1.2.4スプレー1.1.4,1.2.4または1.3.4とスプレールーティングモジュールを使用してください。 シェイプレス2.0.0はもうサポートされていません。 シェイプレス2.3.0ではスプレー1.3.4(Scala 2.10またはScala 2.11)とスプレールーティングshapeless23モジュールをスプレールーティングの代わりに使用してください。

libraryDependencies ++= "io.spray" %% "spray-routing-shapeless23" % "1.3.4", 
関連する問題