Android崩溃-IllegalArgumentException错误的状态类,期望使用View State但收到了类

我在firebase crashlytics中遇到了很多事件。

很难弄清楚,因为我们没有任何设备因该错误而崩溃。

Fatal Exception: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class androidx.recyclerview.widget.RecyclerView$y instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/0x1. Make sure other views do not use the same id.
       at android.view.View.onRestoreInstanceState(View.java:21605)
       at android.view.View.dispatchRestoreInstanceState(View.java:21577)
       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4693)
       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4699)
       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4699)
       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4699)
       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4699)
       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4699)
       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4699)
       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4699)
       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4699)
       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4699)
       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4699)
       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4699)
       at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4699)
       at android.view.View.restoreHierarchyState(View.java:21555)
       at com.android.internal.policy.PhoneWindow.restoreHierarchyState(PhoneWindow.java:2261)
       at android.app.Activity.onRestoreInstanceState(Activity.java:1593)
       at android.app.Activity.performRestoreInstanceState(Activity.java:1548)
       at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1354)
       at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3594)
       at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
       at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
       at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
       at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2220)
       at android.os.Handler.dispatchMessage(Handler.java:107)
       at android.os.Looper.loop(Looper.java:237)
       at android.app.ActivityThread.main(ActivityThread.java:8016)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1076)

任何想法为什么这个问题发生?