致命异常:kotlin中的java.lang.illegalstateexception

rryofs0p  于 2021-08-25  发布在  Java
关注(0)|答案(0)|浏览(244)

应用程序在我这边运行良好。上传到google play商店后,这就是我在firebase crashlytics中看到的。一些用户正在经历崩溃。有人帮帮我吗(
以下是我遇到的错误:
致命异常:java.lang.illegalstateexception:应用程序的pageradapter在未调用pageradapter#notifydatasetchanged的情况下更改了适配器的内容!预期的适配器项计数:1,发现:2个寻呼机id:com.trendy.igprofileviewer:id/imagespager寻呼机类:class com.stfalcon.imageviewer.common.pager.multitouchviewpager有问题的适配器:class com.stfalcon.imageviewer.adapter.imagespageradapter位于androidx.viewpager.widget.viewpager.populate(viewpager.java:1143)处androidx.viewpager.widget.viewpager.populate(viewpager.java:1092)在androidx.viewpager.widget.viewpager.onmeasure(viewpager.java:1622)在android.view.view.view.measure(view.java:24855)在android.view.viewgroup.measureChildWidget.framelayout.onmeasure(framelayout.java:194)在android.view.view.measure(view.java:24855)在android.view.viewgroup.measurechildwithmargins(viewgroup.java:6893)在android.widget.framelayout.onmeasure(framelayout.java:194)在android.view.view.view.measure(view.java:24855)在android.widget.relativelayout.measurechildhorizontal(relativelayout.java:735)在android.view.view.measure上的android.widget.relativelayout.onmeasure(relativelayout.java:481)在android.view.view.viewgroup.measurechildwithmargins(viewgroup.java:6893)在android.widget.framelayout.onmeasure(framelayout.java:194)在android.view.view.measure(view.java:24855)在android.widget.framelayout.onmeasure(framelayout.java:194)的android.view.view.viewgroup.measurechildwithmargins(viewgroup.java:6893)在androidx.appcompat.widget.alertdialoglayout.tryonmeasure(alertdialoglayout.java:134)在androidx.appcompat.widget.alertdialoglayout.onmeasure(alertdialoglayout.java:64)的androidx.appcompat.view.view.view.java:24855上在android.view.view.measure(view.java:24855)在android.view.viewgroup.measurechildwithmargins(viewgroup.java:6893)在android.widget.framelayout.onmeasure(framelayout.java:194)在androidx.appcompat.widget.contentframelayout.onmeasure(contentframelayout.java:146)在android.view.view.view.view.java:24855android.widget.linearlayout.measurechildbeforelayout(linearlayout.java:1552)上的android.widget.linearlayout.MeasureHildWidget.viewgroup.measurechildwithmargins(viewgroup.java:6893)上的android.widget.linearlayout.measurechildbeforelayout(linearlayout.java:1552)上的android.widget.linearlayout.linearlayout.linearlayout.java:842上的androidandroid.widget.framelayout.onmeasure(framelayout.java:194)的android.view.view.viewgroup.measurechildwithmargins(viewgroup.java:6893)的android.view.viewgroup.measurechildwithmargins(viewgroup.java:6893)的android.widget.linearlayout.measurechildbeforelayout(linearlayout.java:1552)的android.widget.linearlayout.measurevertical(linearlayout.java:842)在android.widget.linearlayout.onmeasure(linearlayout.java:721)在android.view.view.measure(view.java:24855)在android.view.viewgroup.measurechildwithmargins(viewgroup.java:6893)在android.widget.framelayout.onmeasure(framelayout.java:194)在android.view.view.measure(view.java:24855)的android.view.viewrootimpl.performmeasure(viewrootimpl.java:3117)的android.view.view.view.view.measure(view.java:24855)的android.view.viewrootimpl.PerformTraversal(viewrootimpl.java:1819)的android.view.viewrootimpl.performtraversals(viewrootimpl.java:2652)的android.view.viewrootimpl$traversalrunnable.run(viewrootimpl.java:7781)在android.view.choreographer$callbackrecord.run(choreographer.java:1031)在android.view.choreographer.docallbacks(choreographer.java:854)在android.view.choreographer.doframe(choreographer.java:789)在android.os.handler.handlecallback(handle.java:883)和android.os.handler.dispatchmessage(handler.java:100)分别在android.os.looper.loop(looper.java:224)和android.app.activitythread.main(activitythread.java:7562)上运行(choreographer.java:1016)和java.lang.reflect.method.invoke(method.java)上运行com.android.internal.os.runtimeinit$methodandargscaller.run(runtimeinit.java:539)位于com.android.internal.os.zygoteinit.main(zygoteinit.java:950)

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题