title: Creating an Akka actor system on an Android
body: <p>I'm trying to create an Akka actor system on an Android (Kitkat) device (with IntelliJ + gradle) using Java. First, I had to add the <code>multiDexEnabled</code> flag (and the multidex support android library) so that I could include the <code>com.typesafe.akka:akka-actor_2.10:2.3.9</code> library (otherwise, I'd hit the 65535 dex function limit). Then, I started getting the following <code>lint</code> warning:</p>
  
  <blockquote>
    <p>message="Invalid package reference in library; not included in
    Android: <code>java.lang.management</code>. Referenced from
    <code>scala.sys.process.package.</code>." category="Correctness" priority="6"
    summary="Package not included in Android" explanation="This check
    scans through libraries looking for calls to APIs that are not
    included in Android.</p>
  </blockquote>
  
  <p>I suppressed this warning, was then able to build and started debugging the code. However, soon enough I encountered a <code>java.lang.VerifyError: scala/None$</code> exception during the creation of an ActorSystem.</p>
  
  <p>What am I doing wrong? Should I be using an older Akka version (I also tried Akka version 2.1.0)? The code works when I switch to Lollipop, but I need it to work on Kitkat also, if possible. Thanks.</p>