我需要有关调试在Play商店中为我的应用报告的崩溃的建议。我将崩溃信息粘贴在此消息的底部。面临的挑战是,不再有关于崩溃的消息被报告在商店中,并且崩溃完全在Google的代码之内。我的应用程序中也有很多RecyclerViews,实际上我不知道是哪个引起了问题。似乎每月只有约200个用户发生一次,因此我怀疑这是一个简单的错误,例如忘记notifyDataSetChanged()
。
我在这里可以使用的任何提示或技巧吗?预先感谢。
这是崩溃:
java.lang.IndexOutOfBoundsException:
at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline (RecyclerView.java:6023)
at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition (RecyclerView.java:5958)
at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition (RecyclerView.java:5954)
at androidx.recyclerview.widget.LinearLayoutManager$LayoutState.next (LinearLayoutManager.java:2226)
at androidx.recyclerview.widget.LinearLayoutManager.layoutChunk (LinearLayoutManager.java:1557)
at androidx.recyclerview.widget.LinearLayoutManager.fill (LinearLayoutManager.java:1517)
at androidx.recyclerview.widget.LinearLayoutManager.scrollBy (LinearLayoutManager.java:1331)
at androidx.recyclerview.widget.LinearLayoutManager.scrollVerticallyBy (LinearLayoutManager.java:1075)
at androidx.recyclerview.widget.RecyclerView.scrollStep (RecyclerView.java:1829)
at androidx.recyclerview.widget.RecyclerView$ViewFlinger.run (RecyclerView.java:5155)
at android.view.Choreographer$CallbackRecord.run (Choreographer.java:927)
at android.view.Choreographer.doCallbacks (Choreographer.java:702)
at android.view.Choreographer.doFrame (Choreographer.java:635)
at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:913)
at android.os.Handler.handleCallback (Handler.java:751)
at android.os.Handler.dispatchMessage (Handler.java:95)
at android.os.Looper.loop (Looper.java:154)
at android.app.ActivityThread.main (ActivityThread.java:6682)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1520)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1410)
答案 0 :(得分:0)
问题与 IndexOutOfBoundsException 有关,这意味着此处提到的适配器未正确接收ArrayList,并引发错误。检查适配器阵列列表并进行修复。下次使用Crashlytics而非Play商店观察崩溃