I'm trying to add akka and spray to my android app (written in Scala with Scaloid lib). Everything should work fine, my ide is not throwing any errors. I found some links addressing the same problem, but nothing helped me so far. When I build my project with:
sbt ~android:install
When I have the following line in my build.sbt
apkbuildExcludes in Android += "reference.conf"
I get the error
08-31 08:02:45.598 7884-7884/? E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: at.itn.android, PID: 7884
com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'akka'
without it
[info] Generating dex, incremental=true
com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK reference.conf
File 1: /home/markus/.ivy2/cache/com.typesafe.akka/akka-actor_2.11/jars/akka-actor_2.11-2.3.5.jar
File 2: /home/markus/.ivy2/cache/com.typesafe.akka/akka-actor_2.11/jars/akka-actor_2.11-2.3.5.jar
I don't have any reference.conf (I also tried the reference.conf https://github.com/akka/akka/blob/master/akka-actor/src/main/resources/reference.conf )
here's my build.sbt
android.Plugin.androidBuild
name := "myApp"
scalaVersion := "2.11.0"
proguardCache in Android ++= Seq(
ProguardCache("org.scaloid") % "org.scaloid"
)
proguardOptions in Android ++= Seq(
"-dontobfuscate",
"-dontoptimize",
"-dontwarn scala.collection.mutable.**",
"-ignorewarnings",
"-keep class scala.Dynamic"
)
apkbuildExcludes in Android += "reference.conf"
libraryDependencies ++= {
Seq(
"org.scaloid" %% "scaloid" % scaloidV,
"com.typesafe.akka" % "akka-actor_2.11" % akkaV
// ....
)
}
Can someone send me in the right direction on how I can get akka running on android?