-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
java.lang.IllegalStateException: Added View has RecyclerView as parent but view is not a real child. Unfiltered index:0 #147
Comments
Could you tell me how to reappear this bug? |
切换动画模式,然后多刷新几次,就报错了,不是必现的 |
是在下拉刷新的时候,同时做删除操作,引起的崩溃 |
08-07 09:43:25.195 26466-26466/com.marshalchen.ultimaterecyclerview.demo E/ViewRootImpl﹕ sendUserActionEvent() mView == null ,cause new bug,when i choose ADMob ListView Test,then Scroll and press the Del button, it cause |
You can disable the swipe gesture when the recyclerview refreshing if you want to solve it now. |
@cymcsg how to disable swipe gesture when recyclerview refreshing? |
I had the same error and the solution for me was to no longer specify my own ids.
and all of this:
|
我也碰到这个错误了 是怎么解决的啊 |
I have this found by v0.7.0 java.lang.IllegalStateException: Added View has RecyclerView as parent but view is not a real child. Unfiltered index:0 @cymcsg i have the same problem too. Do we need to roll-back to the previous version?? dependencies{ |
How can I reappear the exception? By removing a item when the recyclerview is refreshing as @hush881025 said? |
Based on links at final of description, a error can happen if there is conflicted itemId in dataset. It may be caused if the adapter implements a header or footer, when getItemId() returns 0. Now, when is requested an id for a invalid position, a RecyclerView.NO_ID is returned. Links: h6ah4i/android-advancedrecyclerview#164 cymcsg/UltimateRecyclerView#147
08-06 18:34:26.649 31234-31234/com.marshalchen.ultimaterecyclerview.demo E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.marshalchen.ultimaterecyclerview.demo, PID: 31234
java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1
at java.util.ArrayList.remove(ArrayList.java:405)
at com.marshalchen.ultimaterecyclerview.UltimateViewAdapter.remove(UltimateViewAdapter.java:183)
at com.marshalchen.ultimaterecyclerview.demo.SimpleAdapter.remove(SimpleAdapter.java:80)
at com.marshalchen.ultimaterecyclerview.demo.SimpleAdapter.onItemDismiss(SimpleAdapter.java:157)
at com.marshalchen.ultimaterecyclerview.itemTouchHelper.SimpleItemTouchHelperCallback.onSwiped(SimpleItemTouchHelperCallback.java:76)
at android.support.v7.widget.helper.ItemTouchHelper$4.run(ItemTouchHelper.java:669)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5942)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)
The text was updated successfully, but these errors were encountered: