Parcelable encountered IOException writing serializable object getactivity()

前端 未结 12 1867
故里飘歌
故里飘歌 2020-11-29 22:15

so I am getting this in logcat:

java.lang.RuntimeException: Parcelable encountered IOException writing serializable object (name = com.resources.student_list         


        
12条回答
  •  日久生厌
    2020-11-29 22:32

    I faced Same issue, the issues was there are some inner classes with the static keyword.After removing the static keyword it started working and also the inner class should implements to Serializable

    Issue scenario

    class A implements Serializable{ 
      class static B{
      } 
    }
    

    Resolved By

    class A implements Serializable{ 
          class B implements Serializable{
          } 
        }
    

提交回复
热议问题