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)
Logcat:
我估计是用的RecyclerView的Library的问题,换掉换掉。