It seems like you are either directly or indirectly (through some other library) depending on Lifecycle 2.5.0-alpha01.
As per this issue:
You need to temporarily add following to your
build.gradle:tasks.withType(KotlinCompile).configureEach { kotlinOptions { freeCompilerArgs += [ "-Xjvm-default=all", ] } }Note that in certain circumstances you may want to use
all-compatibilityinstead ofall, learn more about that in Jebrain’s blogpost.Starting with kotlin 1.6.20 you won’t need touch build.gradle for more information see KT-47000