阿卡安卓NoSuchMethodException:< init> [英] Akka. Android. NoSuchMethodException: <init>

查看:126
本文介绍了阿卡安卓NoSuchMethodException:< init>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在Android上运行使用Akka的应用程序时,会收到以下异常:

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]

在actor系统创建期间抛出此异常:

This exception is thrown during actor system creation:

Props props1 = Props.create(MyActor.class);
ActorSystem system = ActorSystem.create("MySystem");

我以为proguard删除了构造函数,因此我在proguard.cfg中添加了以下行: / p>

I assumed that proguard removed a constructor, so I added the following line to my proguard.cfg:

-keep class com.typesafe.**  { *; }

但这没有帮助。

我在做什么错?

推荐答案

您的具有以下签名的构造函数之一不公开或不存在:

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)

这篇关于阿卡安卓NoSuchMethodException:&lt; init&gt;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆