title: java.lang.NoSuchMethodError with Scala actors
body: <p>I have a simple Scala application (<a href="http://doc.akka.io/docs/akka/2.3.2/scala/io-tcp.html" rel="nofollow">taken from here</a>) which I want to test. <strong>The whole project is compiled successfully</strong> with SBT. However, when I launch the tests with <code>sbt test</code> I get the following error message:</p>
  
  <pre><code>Could not run test ConnectionTest:java.lang.NoSuchMethodError: akka.actor.Props$.apply(Lscala/Function0;)Lakka/actor/Props;
  </code></pre>
  
  <p>From the internet search, I get the impression that some of my versioning is not compatible but that is merely a guess. <strong>What may be wrong?</strong></p>
  
  <p><strong>[Test Case]</strong></p>
  
  <pre><code>import akka.actor.{Props, Actor, ActorSystem, ActorRef}
  import akka.testkit.{TestKit, TestActorRef, ImplicitSender}
  import org.scalatest.{WordSpecLike, BeforeAndAfterAll}
  import org.scalatest.matchers.MustMatchers
  
  class ConnectionTest extends TestKit(ActorSystem("ConnectionSpec"))
    with WordSpecLike
    with MustMatchers 
    with BeforeAndAfterAll {
  
    override def afterAll() { system.shutdown() }
  
    "Server" must {
      "bind to port " in {
        // create server
        val server  = system.actorOf(Props[Server], name = "server")
  
        expectMsg("Bound to /127.0.0.1:8888")
      }    
    }
  }
  </code></pre>
  
  <p><strong>[build.sbt]</strong></p>
  
  <pre><code>name := "MyApp"
  
  version := "0.2"
  
  scalaVersion := "2.10.4"
  
  mainClass := Some("akka.Main")
  
  resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"
  
  libraryDependencies +=
  "com.typesafe.akka" %% "akka-actor" % "2.3.2"
  
  libraryDependencies += 
  "com.typesafe.akka" %% "akka-testkit" % "2.1.4" % "test"
  
  libraryDependencies += 
  "org.scalatest" % "scalatest_2.10" % "2.0" % "test"
  </code></pre>