The issue is caused by using incompatible versions of Scala. When the version scala is downgraded from 2.11 to 2.10 and here one package is forgotten to modify version (so one package used 2.11, the rest 2.10), and this leads having the same error.
Make a note that, this issue is seen when using IntelliJ.
Here this works fine when these versions are used.
<dependency> <groupId>org.scala-lang</groupId> <artifactId>scala-library</artifactId> <version>2.11.6</version> </dependency> <dependency> <groupId>com.typesafe.akka</groupId> <artifactId>akka-actor_2.11</artifactId> <version>2.3.11</version> </dependency>