美文网首页
java.lang.IllegalArgumentExcepti

java.lang.IllegalArgumentExcepti

作者: alian_girl | 来源:发表于2018-07-04 19:24 被阅读48次

    java.lang.IllegalArgumentException: Called attach on a child which is not detached: ViewHolder{30f3d859 position=0 id=-1, oldPos=-1, pLpos:-1} android.support.v7.widget.RecyclerView{11946c1e VFE..... ......ID 0,0-720,1130 #7f0901ae app:id/recycler_view}, adapter:com.adapter.Adapter@e979d6a, layout:android.support.v7.widget.GridLayoutManager@32575cff, context:com.chainstyle.MainActivity@3be09db6

    开发时出现这种错误,解决办法是:Adapter.notifyItemChanged(position +1);

    不知道适不适用你们

    相关文章

      网友评论

          本文标题:java.lang.IllegalArgumentExcepti

          本文链接:https://www.haomeiwen.com/subject/jjsyuftx.html