julioromano
01/26/2022, 8:04 PMlifecycle-viewmodel:2.5.0-alpha01
I’m getting compile errors on classes that inherit from `ViewModelProvider.Factory`:
Inheritance from an interface with ‘@JvmDefault’ members is only allowed with -Xjvm-default optionI’ve tried fiddling all
-Xjvm-default=xxxxx
options but the error does not go away.
Anyone had the same trouble?Colton Idle
01/26/2022, 11:42 PMColton Idle
01/27/2022, 12:27 AMColton Idle
01/27/2022, 12:39 AMtasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
freeCompilerArgs += "-Xjvm-default=enable"
}
}
julioromano
01/27/2022, 12:46 AMColton Idle
01/27/2022, 12:55 AMColton Idle
01/27/2022, 12:55 AM-Xjvm-default=enable
NOT -Xjvm-default
(which I know you said you tried. just highlighting for others in the future)