2017-09-20 9 views
0

Akkaの使用中に次のエラーが発生します。私はそれが互換性のないAkkaバージョンのためかもしれないと思うが、私はどちらを使うべきか分からない。

build.sbt

name := "Example" 

version := "1.0" 

scalaVersion := "2.11.1" 

resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/" 

libraryDependencies += "com.typesafe.akka" % "akka-actor_2.10" % "2.2-M1" 

エラー

>sbt run 
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0 
[info] Loading global plugins from C:\Users\Manu\.sbt\0.13\plugins 
[info] Set current project to Example (in build file:/C:/Users/Manu/Documents/manu/programs/scala/from_book/) 
[info] Running Upper 
[error] (run-main-0) java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class 
java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class 
     at akka.util.Collections$EmptyImmutableSeq$.<init>(Collections.scala:15) 
+0

'libraryDependencies ++ =配列( 「com.typesafeを.akka "%%" akka-actor "%" 2.5.4 "、 " com.typesafe.akka "%%" akka-testkit "%" 2.5.4 "%テスト ) '私のために働いたが、私はAkkaとScalaのバージョンの互換性を見つける方法があるのだろうか –

答えて

1

akka-actor_2.10_2.10あなたは(2.11)以上のごScalaのバージョンと一致しないScalaの2.10、のバージョンが欲しい示し接頭辞。

あなたはScalaの2.11を使用したい場合は、アッカの最新バージョンは

libraryDependencies += "com.typesafe.akka" % "akka-actor_2.11" % "2.5.4" 

だろうあなたがここにすべてのバージョンを参照することができますhttps://mvnrepository.com/artifact/com.typesafe.akka/akka-actor_2.11

関連する問題