Akka. Android. NoSuchMethodException: <init>

Ivan Mushketyk

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?

mttdbrd

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android.util.AttributeSet]

From Dev

Spring Security Java NoSuchMethodException: SecurityConfig.<init>()

From Dev

java.lang.NoSuchMethodException: AffirmativeBased.<init>()

From Dev

What causing this exception java.lang.RuntimeException: java.lang.NoSuchMethodException: <init> [class android.view.View]

From Dev

java.lang.NoSuchMethodException: akka.cluster.ClusterActorRefProvider

From Dev

Akka on Android

From Dev

Multipart file upload with Spring: NoSuchMethodException: ...CommonsMultipartFile.<init>()

From Dev

NoSuchMethodException <init>() when extending javafx.scene.chart.LineChart

From Dev

Best practices for creation of Akka microkernel init script

From Dev

Error: java.lang.NoSuchMethodException: java.lang.Long.<init>() in spring MVC

From Dev

Exception while starting up the server : java.lang.NoSuchMethodException: org.springframework.security.authentication.ProviderManager.<init>()

From Dev

Java reflection: constructor for primitive int causes: java.lang.NoSuchMethodException: int.<init>(int)

From Dev

Java reflection: constructor for primitive int causes: java.lang.NoSuchMethodException: int.<init>(int)

From Dev

java.lang.NoSuchMethodException: <Class>.<init>(java.lang.String) when copying custom Transformer

From Dev

android java.lang.AssertionError: java.lang.NoSuchMethodException - Proguard

From Dev

Getting a noSuchMethodException

From Dev

Grails - NoSuchMethodException

From Dev

JNLP - NoSuchMethodException

From Dev

Getting a noSuchMethodException

From Dev

Android kernel and init.rc

From Dev

Android kernel and init.rc

From Dev

.init(activity); is showing error [android]

From Dev

Akka on Android multiple reference.conf

From Dev

Akka TcpPipeLine: how can I send message to a client/server without receiving a init.Event first?

From Dev

Execute a daemon in Android init.rc

From Dev

What is the list of all Android Init Language 'triggers'?

From Dev

Libjingle webrtc failed to init camera on android 7

From Dev

Android fanotify_init: Function not implemented

From Dev

init method in non-static block Android

Related Related

  1. 1

    Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android.util.AttributeSet]

  2. 2

    Spring Security Java NoSuchMethodException: SecurityConfig.<init>()

  3. 3

    java.lang.NoSuchMethodException: AffirmativeBased.<init>()

  4. 4

    What causing this exception java.lang.RuntimeException: java.lang.NoSuchMethodException: <init> [class android.view.View]

  5. 5

    java.lang.NoSuchMethodException: akka.cluster.ClusterActorRefProvider

  6. 6

    Akka on Android

  7. 7

    Multipart file upload with Spring: NoSuchMethodException: ...CommonsMultipartFile.<init>()

  8. 8

    NoSuchMethodException <init>() when extending javafx.scene.chart.LineChart

  9. 9

    Best practices for creation of Akka microkernel init script

  10. 10

    Error: java.lang.NoSuchMethodException: java.lang.Long.<init>() in spring MVC

  11. 11

    Exception while starting up the server : java.lang.NoSuchMethodException: org.springframework.security.authentication.ProviderManager.<init>()

  12. 12

    Java reflection: constructor for primitive int causes: java.lang.NoSuchMethodException: int.<init>(int)

  13. 13

    Java reflection: constructor for primitive int causes: java.lang.NoSuchMethodException: int.<init>(int)

  14. 14

    java.lang.NoSuchMethodException: <Class>.<init>(java.lang.String) when copying custom Transformer

  15. 15

    android java.lang.AssertionError: java.lang.NoSuchMethodException - Proguard

  16. 16

    Getting a noSuchMethodException

  17. 17

    Grails - NoSuchMethodException

  18. 18

    JNLP - NoSuchMethodException

  19. 19

    Getting a noSuchMethodException

  20. 20

    Android kernel and init.rc

  21. 21

    Android kernel and init.rc

  22. 22

    .init(activity); is showing error [android]

  23. 23

    Akka on Android multiple reference.conf

  24. 24

    Akka TcpPipeLine: how can I send message to a client/server without receiving a init.Event first?

  25. 25

    Execute a daemon in Android init.rc

  26. 26

    What is the list of all Android Init Language 'triggers'?

  27. 27

    Libjingle webrtc failed to init camera on android 7

  28. 28

    Android fanotify_init: Function not implemented

  29. 29

    init method in non-static block Android

HotTag

Archive