lundi 26 février 2018

slf4j version incompatibility

I am trying to use the org.reflections library in my project. I am adding it to the list of my gradle dependencies, but when I run my code I get the following:

SLF4J: slf4j-api 1.6.x (or later) is incompatible with this binding.
SLF4J: Your binding is version 1.5.5 or earlier.
SLF4J: Upgrade your binding to version 1.6.x.

java.lang.NoSuchMethodError:  org.slf4j.impl.StaticLoggerBinder.getSingleton()Lorg/slf4j/impl/StaticLoggerBinder;

I understand this is because one of my dependencies is using internally a higher version of slf4j that is incompatible with the one that org.reflections is using.

I saw a suggestion to make sure the jar with the older version be included last. how can I do that in Gradle or is there another solutionH





Aucun commentaire:

Enregistrer un commentaire