AndroidX : Parcelable encountered IOException writing serializable object only in Android version 10 devices
Here Is Your Solution :
transient is a variables modifier used in serialization. At the time of serialization, if we don't want to save value of a particular variable in a file, then we use transient keyword. When JVM comes across transient keyword, it ignores original value of the variable and save default value of that variable data type.
So, it uses quite rare in order to say to your compiler that this variable is not a part of serializable mathod.