Guilherme Krzisch
11/27/2019, 8:32 PMjava.lang.AbstractMethodError: abstract method "void android.os.Parcelable.writeToParcel(android.os.Parcel, int)"
when putting the app in background, after saving a parcelable (using Parcelize
) in onSaveInstanceState
:
override fun onSaveInstanceState(outState: Bundle) {
outState.putParcelable("test", Test())
super.onSaveInstanceState(outState)
}
@Parcelize
data class Test(val test: String = "test"): Parcelable
It does not occur on configuration changes though. I'm using AS 4.0 Canary 4, with kotlin 1.3.60-eap-25
. Any idea of what am I doing wrong here?dawidhyzy
11/28/2019, 7:17 AMGuilherme Krzisch
11/28/2019, 2:28 PMThrown when an application tries to call an abstract method. Normally, this error is caught by the compiler; this error can only occur at run time if the definition of some class has incompatibly changed since the currently executing method was last compiled.
🤔