用于安卓崩溃消息中心的Apptentive

时间:2015-10-20 21:19:06

标签: android apptentive

我已将Apptentive添加到我的Android应用following the instructions here

我最初看到消息中心,当我向支持团队发送消息时,一切似乎都很好。当支持团队做出响应时,我会在消息中心看到响应。

但是,当我关闭消息中心并在应用程序上重新打开消息中心时,Apptentive会崩溃并显示此堆栈跟踪:

10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime: FATAL EXCEPTION: main
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime: Process: com.myapp, PID: 30311
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setVisibility(int)' on a null object reference
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at com.apptentive.android.sdk.module.messagecenter.view.holder.IncomingTextMessageHolder.updateMessage(IncomingTextMessageHolder.java:44)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at com.apptentive.android.sdk.module.messagecenter.view.MessageAdapter.getView(MessageAdapter.java:314)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.widget.AbsListView.obtainView(AbsListView.java:2347)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.widget.ListView.measureHeightOfChildren(ListView.java:1270)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.widget.ListView.onMeasure(ListView.java:1182)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.View.measure(View.java:17547)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.View.measure(View.java:17547)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.widget.LinearLayout.measureVertical(LinearLayout.java:875)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.View.measure(View.java:17547)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.View.measure(View.java:17547)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:727)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:463)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.View.measure(View.java:17547)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.support.v7.internal.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.View.measure(View.java:17547)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.View.measure(View.java:17547)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.View.measure(View.java:17547)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.View.measure(View.java:17547)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2615)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.View.measure(View.java:17547)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2015)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1173)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1379)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1061)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5885)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.Choreographer.doCallbacks(Choreographer.java:580)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.Choreographer.doFrame(Choreographer.java:550)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.os.Handler.handleCallback(Handler.java:739)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:95)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:135)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:5254)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Method.java:372)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
10-20 17:12:42.256 30311-30311/com.myapp E/AndroidRuntime:  at com.andro

自从Apptentive工作以来,我不确定我做错了什么,直到它尝试使用填充的响应加载消息中心。

0 个答案:

没有答案