when putting the app in background, after saving a parcelable (using
Parcelize
) in
onSaveInstanceState
:
Copy code
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?
d
dawidhyzy
11/28/2019, 7:17 AM
It’s not a root cause but put your data before calling super
👍 1
g
Guilherme Krzisch
11/28/2019, 2:28 PM
Investigating a little further, AbstractMethodError occurs when
Thrown 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.