I want to use akka in my android app but during conversion I get following error:
Dx processing akka/kernel/Main$.class...
Dx processing akka/kernel/Main$$anon$1.class...
Dx
trouble writing output: No expanded opcode for 01ffb17a AkkaException.scala:20@000b: invoke-direct v0:NffffLakka/AkkaException$$anonfun$stackTraceToString$1;, scala.runtime.AbstractFunction1.<init>:()V
Conversion to Dalvik format failed with error 2
I am using akka 2.0.1 and adt 18.0.0.v201203301601-306762.
Are there any ways to overcome this problem?
You appear to be hitting the limit of 64k method references in a dex file. There’s not much you can do, other than reducing the size of the code that in that dex file. Either by removing code, or splitting some of the classes out into a separate dex file.