1

我正在使用 Smooch.io sdk 为我的 android 应用程序构建客户支持系统,并且可以向支持团队发送消息,但是我配置了一个自动响应,要求用户评分。但是在收到耳语后,应用程序崩溃并且无法加载对话屏幕。找出错误

java.lang.NoSuchMethodError: No virtual method getState()Ljava/lang/String; in class Lio/smooch/core/MessageAction; or its super classes (declaration of 'io.smooch.core.MessageAction' appears in /data/app/com.fedo.app-2/base.apk)
                                                                  at io.smooch.ui.adapter.MessageListAdapter.getItemView(Unknown Source)
                                                                  at io.smooch.ui.adapter.MessageListAdapter.getView(Unknown Source)
                                                                  at android.widget.AbsListView.obtainView(AbsListView.java:2346)
                                                                  at android.widget.ListView.makeAndAddView(ListView.java:1876)
                                                                  at android.widget.ListView.fillDown(ListView.java:702)
                                                                  at android.widget.ListView.fillFromTop(ListView.java:763)
                                                                  at android.widget.ListView.layoutChildren(ListView.java:1671)
                                                                  at android.widget.AbsListView.onLayout(AbsListView.java:2148)
                                                                  at android.view.View.layout(View.java:16636)
                                                                  at android.view.ViewGroup.layout(ViewGroup.java:5437)
                                                                  at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
                                                                  at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
                                                                  at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
                                                                  at android.view.View.layout(View.java:16636)
                                                                  at android.view.ViewGroup.layout(ViewGroup.java:5437)
                                                                  at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1079)
                                                                  at android.view.View.layout(View.java:16636)
                                                                  at android.view.ViewGroup.layout(ViewGroup.java:5437)
                                                                  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
                                                                  at android.widget.FrameLayout.onLayout(FrameLayout.java:273)
                                                                  at android.view.View.layout(View.java:16636)
                                                                  at android.view.ViewGroup.layout(ViewGroup.java:5437)
                                                                  at android.support.v7.internal.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:437)
                                                                  at android.view.View.layout(View.java:16636)
                                                                  at android.view.ViewGroup.layout(ViewGroup.java:5437)
                                                                  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
                                                                  at android.widget.FrameLayout.onLayout(FrameLayout.java:273)
                                                                  at android.view.View.layout(View.java:16636)
                                                                  at android.view.ViewGroup.layout(ViewGroup.java:5437)
                                                                  at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
                                                                  at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
                                                                  at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
                                                                  at android.view.View.layout(View.java:16636)
                                                                  at android.view.ViewGroup.layout(ViewGroup.java:5437)
                                                                  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
                                                                  at android.widget.FrameLayout.onLayout(FrameLayout.java:273)
                                                                  at com.android.internal.policy.PhoneWindow$DecorView.onLayout(PhoneWindow.java:2678)
                                                                  at android.view.View.layout(View.java:16636)
                                                                  at android.view.ViewGroup.layout(ViewGroup.java:5437)
                                                                  at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2171)
                                                                  at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1931)
                                                                  at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)
                                                                  at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)
                                                                  at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
                                                                  at android.view.Choreographer.doCallbacks(Choreographer.java:670)
                                                                  at android.view.Choreographer.doFrame(Choreographer.java:606)
                                                                  at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
                                                                  at android.os.Handler.handleCallback(Handler.java:739)
                                                                  at android.os.Handler.dispatchMessage(Handler.java:95)
                                                                  at android.os.Looper.loop(Looper.java:148)
                                                                  at android.app.ActivityThread.main(ActivityThread.java:5417)
                                                                  at java.lang.reflect.Method.invoke(Native Method)
                                                                  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
                                                                  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
4

1 回答 1

3

此错误仅适用于最新版本。我回来了 2.0.5 一切都好!

compile 'io.smooch:core:2.0.5'
compile 'io.smooch:ui:2.0.5'
于 2015-12-28T09:58:55.290 回答