Getting Program type already present: org.slf4j.impl.StaticMDCBinder when trying to compile an android app with 1.1.0
I'm using
implementation "io.ktorktor client core jvm$ktor_version"
implementation "io.ktorktor client json jvm$ktor_version"
implementation "io.ktorktor client logging jvm$ktor_version"
implementation "io.ktorktor client okhttp$ktor_version"
on the JVM side.
Maybe because logging-jvm uses an older version of slf4j-simple which has a dependency on a different org.slf4jslf4j api1.6.1 version than all the other libraries?
Jonas Bark
12/24/2018, 10:49 PM
excluding slf4j-simple indeed did the trick:
implementation ("io.ktorktor client logging jvm$ktor_version") {
exclude group: 'org.slf4j', module: "slf4j-simple"
}