Why doesn’t it work?

You’d be more likely to get helpful replies if you posted the code and the full stack trace as text, not an image. (Images can be hard to read, especially on small screens; they’re not searchable, not accessible, and not copy-and-pasteable, amongst other issues.)


What version of Kotlin plugin do you have installed?
What JDK version is configured in your project?

From the stacktrace, it’s likely that you’re using Kotlin 1.4.x or lower with JDK 16 or higher, which is not supported. In that case you need either to upgrade Kotlin plugin, or to use lower JDK version, for example, JDK 15.

1 Like