https://kotlinlang.org logo
#android
Title
# android
m

Marc Knaup

08/23/2019, 7:28 PM
Is this a Kotlin or an R8 bug?
java.lang.LinkageError: Method void g.y4$b.a() [aka
app.SomeFragment.Model.clear()
] overrides final method in class Lf/n/j0 [aka
androidx.lifecycle.ViewModel
];
The method in question is
fun clear()
in my own
ViewModel
subclasses.
clear()
in Android’s
ViewModel
is
final
with package-visibility so the
clear()
of my own subclass should be treated as a completely different function!