I'm trying to get my `Application` class to extend...
# android
l
I'm trying to get my
Application
class to extend a
fun interface ImageLoaderFactory
(from Coil). However I get the following error:
Copy code
Inheritance from an interface with '@JvmDefault' members is only allowed with -Xjvm-default option
I have
kotlinOptions.jvmTarget = "11"
.
g
You should pass this option to compiler, it's not enabled by default
l
Thank you! Requiring this flag is unexpected though, because the Coil interface
ImageLoaderFactory
does not mark its method as
@JvmDefault
. In fact it doesn't have a default method implementation at all: https://github.com/coil-kt/coil/blob/main/coil-singleton/src/main/java/coil/ImageLoaderFactory.kt
e
l
That makes sense, thank you.