-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android 10 以及Android 10 以下,出现下面的崩溃,看日志 #216
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
补充一下。我使用的版本是1.5.0 |
这个异常,看上去像是由于业务逻辑引起的~ |
不太好确定边界行。因为Android10 以上,确实一个崩溃都没有。如果是业务的问题。应该是机型覆盖比较广的。而且,我们大量都是Android11+的用户 |
或者说,我可以采用什么方式来捕获这个异常。起码不要崩溃呢? |
你可以尝试从你们定义的 CatchLinearLayoutManager 入手试试 |
这个类,没啥代码呀。只有 try catch。没了。
} |
你不是作者啊。。。。给我干蒙圈了。。。。不要瞎回复啊。。。。 |
|
@HeroZ-Dodge 是官方的 |
我们测试下,感谢反馈。 |
Fatal Exception: java.lang.IllegalArgumentException: Scrapped or attached views may not be recycled. isScrap:false isAttached:true com.xxxx.AutoHideXXxxPanelRecyclerView{cf58a2a VFED..... ......ID 0,0-720,1001 #7f0a0c38 app:id/recyclerView}, adapter:com.xxx.adapter.wrapper.HeaderAndFooterAdapterWrapper@65191a4, layout:com.xxxx..CatchLinearLayoutManager@1ff57, context:com.XXXX.ChatActivity@d5425a5
at androidx.recyclerview.widget.RecyclerView$Recycler.recycleViewHolderInternal(RecyclerView.java:7071)
at androidx.recyclerview.widget.RecyclerView$Recycler.quickRecycleScrapView(RecyclerView.java:7194)
at androidx.recyclerview.widget.RecyclerView$LayoutManager.removeAndRecycleScrapInt(RecyclerView.java:10076)
at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep3(RecyclerView.java:4717)
at androidx.recyclerview.widget.RecyclerView.dispatchLayout(RecyclerView.java:4367)
at androidx.recyclerview.widget.RecyclerView.onLayout(RecyclerView.java:4919)
at android.view.View.layout(View.java:20956)
at android.view.ViewGroup.layout(ViewGroup.java:6396)
at androidx.constraintlayout.widget.ConstraintLayout.onLayout(ConstraintLayout.java:1873)
at android.view.View.layout(View.java:20956)
at android.view.ViewGroup.layout(ViewGroup.java:6396)
at com.effective.android.panel.view.content.ContentContainerImpl.layoutContainer(ContentContainerImpl.kt:380)
The text was updated successfully, but these errors were encountered: