Unresolved Dependencies for a new play 2.0 scala p

2019-02-21 03:54发布

问题:

Good day,

After "play new todo" (new scala project) -> "cd todo" -> "play dependencies" I get this one unresolved dependency "org.slf4j:slf4j-api:1.6.1 required by "net.sf.ehcache:ehcache-core:2.5.0, org.hibernate:hibernate-validator:4.2.0.Final, play:play_2.9.1:2.0" reason "Evicted by 1.6.4".

Actually there is already org.slf4j:slf4j-api:1.6.4 in resolved dependencies.

I tried different things, nothing worked. It seems that in the internets there is only one guy here who have the same problem, but the way he solved it didn't work for me.

I also tried the version of play framework that is in the AUR repository (I'm using Archlinux), but then I had other, even more complicated, problems, so I returned to the version downloaded from the official site.

Do anyone have any hint about how to solve this dependency problem?

回答1:

The error states, "org.slf4j:slf4j-api:1.6.1" is required.

You have "org.slf4j:slf4j-api:1.6.4", which is, of course, not the same (i.e. 1.6.1 is not 1.6.4)

Cheers