Unresolved reference: slf4j_version

Everytime i make a new ktor project in Intelij i get this error:
Unresolved reference: slf4j_version

All the things listed on google have i already tried, and it didn’t work.
Any ideas?

I also had this problem, it looks like this is missing out of the template. If you’re using Ktor with Gradle Kotlin DSL.

Do the following:

In your gradle.properties add:

slf4j_version=2.0.9

In your root build.gradle.kts add:

val slf4j_version: String by project

1 Like

It Work Thank You