When I am running application that uses Akka on Android I receive the following exception:
04-29 16:13:06.235: E/AndroidRuntime(8968): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp/com.myapp.MyActivity}: java.lang.NoSuchMethodException: <init> [interface com.typesafe.config.Config, interface akka.event.LoggingAdapter, interface java.util.concurrent.ThreadFactory]
This exception is thrown during actor system creation:
Props props1 = Props.create(MyActor.class);
ActorSystem system = ActorSystem.create("MySystem");
I assumed that proguard removed a constructor, so I added the following line to my proguard.cfg:
-keep class com.typesafe.** { *; }
but it didn't help.
What am I doing wrong?
One of your constructors with the following signature is not public or doesn't exist:
MyActivity (com.typesafe.config.Config, akka.event.LoggingAdapter, java.util.concurrent.ThreadFactory)
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments