如何阅读Google Play崩溃报告

时间:2018-07-07 23:15:00

标签: android crash

我是android世界的新手。我已经构建了一个小应用程序,并将其发布在Google Play商店中。我只是注意到有来自三个设备的崩溃报告。我试图阅读它,但无法确定应用程序的哪一部分崩溃了。另外,我也没有找到有关如何阅读此报告的文章。

这是报告之一:

java.lang.ClassCastException: 
  at android.widget.ListView.setupChild (ListView.java:1854)
  at android.widget.ListView.makeAndAddView (ListView.java:1816)
  at android.widget.ListView.fillDown (ListView.java:697)
  at android.widget.ListView.fillFromTop (ListView.java:763)
  at android.widget.ListView.layoutChildren (ListView.java:1627)
  at android.widget.AbsListView.onLayout (AbsListView.java:2166)
  at android.view.View.layout (View.java:15033)
  at android.view.ViewGroup.layout (ViewGroup.java:4799)
  at android.support.constraint.ConstraintLayout.onLayout (ConstraintLayout.java:1855)
  at android.view.View.layout (View.java:15033)
  at android.view.ViewGroup.layout (ViewGroup.java:4799)
  at android.widget.FrameLayout.layoutChildren (FrameLayout.java:453)
  at android.widget.FrameLayout.onLayout (FrameLayout.java:388)
  at android.view.View.layout (View.java:15033)
  at android.view.ViewGroup.layout (ViewGroup.java:4799)
  at android.support.v7.widget.ActionBarOverlayLayout.onLayout (ActionBarOverlayLayout.java:443)
  at android.view.View.layout (View.java:15033)
  at android.view.ViewGroup.layout (ViewGroup.java:4799)
  at android.widget.FrameLayout.layoutChildren (FrameLayout.java:453)
  at android.widget.FrameLayout.onLayout (FrameLayout.java:388)
  at android.view.View.layout (View.java:15033)
  at android.view.ViewGroup.layout (ViewGroup.java:4799)
  at android.widget.LinearLayout.setChildFrame (LinearLayout.java:1671)
  at android.widget.LinearLayout.layoutVertical (LinearLayout.java:1525)
  at android.widget.LinearLayout.onLayout (LinearLayout.java:1434)
  at android.view.View.layout (View.java:15033)
  at android.view.ViewGroup.layout (ViewGroup.java:4799)
  at android.widget.FrameLayout.layoutChildren (FrameLayout.java:453)
  at android.widget.FrameLayout.onLayout (FrameLayout.java:388)
  at android.view.View.layout (View.java:15033)
  at android.view.ViewGroup.layout (ViewGroup.java:4799)
  at android.view.ViewRootImpl.performLayout (ViewRootImpl.java:2151)
  at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:1862)
  at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1063)
  at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:5993)
  at android.view.Choreographer$CallbackRecord.run (Choreographer.java:761)
  at android.view.Choreographer.doCallbacks (Choreographer.java:574)
  at android.view.Choreographer.doFrame (Choreographer.java:544)
  at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:747)
  at android.os.Handler.handleCallback (Handler.java:733)
  at android.os.Handler.dispatchMessage (Handler.java:95)
  at android.os.Looper.loop (Looper.java:136)
  at android.app.ActivityThread.main (ActivityThread.java:5584)
  at java.lang.reflect.Method.invokeNative (Native Method)
  at java.lang.reflect.Method.invoke (Method.java:515)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1268)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1084)
  at dalvik.system.NativeStart.main (Native Method) 

如果有人可以向我展示如何追溯此应用程序,我将不胜感激

1 个答案:

答案 0 :(得分:1)

复制崩溃(ctrl + v),然后从Android Studio的“分析”菜单中选择“分析堆栈跟踪”选项:

Analyze Stacktrace Option

之后,您可以粘贴复制的日志/堆栈跟踪,然后单击“确定”,然后Android Studio将以蓝色突出显示代码中堆栈跟踪的哪一部分。

Stacktrace higlight