I can't run any of your examples. Why is there a mismatch in your java versions?
'compileDebugJavaWithJavac' task (current target is 1.8) and 'compileDebugKotlin' task (current target is 11) jvm target compatibility should be set to the same Java version.
I can't run any of your examples. Why is there a mismatch in your java versions?