Skip to content
This repository was archived by the owner on Dec 17, 2019. It is now read-only.

RecyclerView Crash #4

@DeweyReed

Description

@DeweyReed

Logcat:

java.lang.IllegalArgumentException: Scrapped or attached views may not be recycled. isScrap:false isAttached:true android.support.v7.widget.RecyclerView{47f7b2 VFED.V... .F....ID 0,0-1080,1572 #7f090094 app:id/listAppPermissions}, adapter:com.finalweek10.permission.ui.detail.AppDetailAdapter@d011766, layout:android.support.v7.widget.LinearLayoutManager@d7c3aa7, context:com.finalweek10.permission.ui.detail.AppDetailActivity@cec88ea
at android.support.v7.widget.RecyclerView$Recycler.updateViewCacheSize(Unknown Source)
                                                   convertPreLayoutPositionToPostLayout
                                                   recycleViewHolderInternal
                                                   quickRecycleScrapView
                                                   getScrapOrHiddenOrCachedHolderForPosition
                                                   offsetPositionRecordsForInsert
at android.support.v7.widget.RecyclerView$Recycler.clear(Unknown Source)
                                                   setViewCacheSize
                                                   validateViewHolderForOffsetPosition
                                                   tryBindViewHolderByDeadline
                                                   getViewForPosition
                                                   tryGetViewHolderForPositionByDeadline
                                                   invalidateDisplayListInt
                                                   recycleView
                                                   addViewHolderToRecycledViewPool
                                                   getScrapOrCachedViewForId
                                                   onAdapterChanged
                                                   offsetPositionRecordsForMove
                                                   offsetPositionRecordsForRemove
                                                   setViewCacheExtension
                                                   setRecycledViewPool
at android.support.v7.widget.GapWorker.add(Unknown Source)
                                       postFromTraversal
                                       buildTaskList
                                       isPrefetchPositionAttached
                                       prefetchPositionWithDeadline
                                       prefetchInnerRecyclerViewWithDeadline
                                       flushTaskWithDeadline
                                       prefetch
at android.support.v7.widget.GapWorker.add(Unknown Source)
                                       postFromTraversal
                                       buildTaskList
                                       isPrefetchPositionAttached
                                       prefetchPositionWithDeadline
                                       prefetchInnerRecyclerViewWithDeadline
                                       flushTaskWithDeadline
                                       prefetch
at android.support.v7.widget.GapWorker.remove(Unknown Source)
                                       flushTasksWithDeadline
at android.support.v7.widget.GapWorker.add(Unknown Source)
                                       postFromTraversal
                                       buildTaskList
                                       isPrefetchPositionAttached
                                       prefetchPositionWithDeadline
                                       prefetchInnerRecyclerViewWithDeadline
                                       flushTaskWithDeadline
                                       prefetch
at android.support.v7.widget.GapWorker.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:743)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:150)
at android.app.ActivityThread.main(ActivityThread.java:5665)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:689)

我估计是用的RecyclerView的Library的问题,换掉换掉。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions