When scrolling the RecyclerView is presented this error. Exists solution for this error?
My Recyclerview:
StickyHeaderGridLayoutManager mLayoutManager;
mLayoutManager = new StickyHeaderGridLayoutManager(1);
rvCardapio.setLayoutManager(mLayoutManager);
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.makerdelivery.concept.makerdelivery, PID: 17594
java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
at android.view.ViewGroup.addViewInner(ViewGroup.java:4421)
at android.view.ViewGroup.addView(ViewGroup.java:4262)
at android.view.ViewGroup.addView(ViewGroup.java:4202)
at android.support.v7.widget.RecyclerView$5.addView(RecyclerView.java:754)
at android.support.v7.widget.ChildHelper.addView(ChildHelper.java:107)
at android.support.v7.widget.RecyclerView$LayoutManager.addViewInt(RecyclerView.java:8029)
at android.support.v7.widget.RecyclerView$LayoutManager.addView(RecyclerView.java:7987)
at com.codewaves.stickyheadergrid.StickyHeaderGridLayoutManager.fillBottomRow(StickyHeaderGridLayoutManager.java:514)
at com.codewaves.stickyheadergrid.StickyHeaderGridLayoutManager.addRow(StickyHeaderGridLayoutManager.java:716)
at com.codewaves.stickyheadergrid.StickyHeaderGridLayoutManager.scrollVerticallyBy(StickyHeaderGridLayoutManager.java:779)
at android.support.v7.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:4864)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:874)
at android.view.Choreographer.doCallbacks(Choreographer.java:686)
at android.view.Choreographer.doFrame(Choreographer.java:618)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:860)
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:6165)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:888)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:778)
When scrolling the RecyclerView is presented this error. Exists solution for this error?
My Recyclerview: