欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

SBT-Found version conflict(s) in library dependencies; some are suspected to be binary incompatible:

程序员文章站 2024-02-21 21:55:22
...
[warn] Found version conflict(s) in library dependencies; some are suspected to be binary incompatible:
[warn]  * com.google.guava:guava:22.0 is selected over {18.0, 19.0, 16.0.1, 13.0.1, 15.0, 12.0.1, 14.0.1, 11.0.2}
[warn]      +- com.typesafe.play:play_2.11:2.6.6                  (depends on 22.0)
[warn]      +- com.google.inject:guice:4.1.0                      (depends on 19.0)
[warn]      +- org.apache.hadoop:hadoop-yarn-common:2.7.2         (depends on 18.0)
[warn]      +- org.apache.hbase:hbase-server:1.1.1                (depends on 18.0)
[warn]      +- org.apache.hbase:hbase-client:1.1.1                (depends on 18.0)
[warn]      +- org.apache.hadoop:hadoop-yarn-server-web-proxy:2.7.2 (depends on 18.0)
[warn]      +- org.apache.slider:slider-core:0.90.2-incubating    (depends on 18.0)
[warn]      +- org.apache.calcite:calcite-core:1.10.0             (depends on 18.0)
[warn]      +- org.apache.hive:hive-vector-code-gen:2.3.2         (depends on 18.0)
[warn]      +- org.apache.hadoop:hadoop-yarn-api:2.7.2            (depends on 18.0)
[warn]      +- org.apache.calcite:calcite-linq4j:1.10.0           (depends on 18.0)
[warn]      +- org.reflections:reflections:0.9.9-RC1              (depends on 18.0)
[warn]      +- org.apache.hive:hive-metastore:2.3.2               (depends on 18.0)
[warn]      +- org.apache.hbase:hbase-hadoop2-compat:1.1.1        (depends on 18.0)
[warn]      +- org.apache.curator:apache-curator:2.7.1            (depends on 18.0)
[warn]      +- org.apache.hbase:hbase-prefix-tree:1.1.1           (depends on 18.0)
[warn]      +- com.jolbox:bonecp:0.8.0.RELEASE                    (depends on 18.0)

分析:这个问题是多版本冲突导致,在Sbt中指定项目要的版本。
解决:看依赖树、Sbt中Jar 包、Maven中Jar包、最后在Sbt中加入指定的包:
参考:
https://github.com/playframework/playframework/issues/7832

libraryDependencies ++= Seq(
“com.google.guava” % “guava” % “22.0”
)

SBT-Found version conflict(s) in library dependencies; some are suspected to be binary incompatible:

SBT-Found version conflict(s) in library dependencies; some are suspected to be binary incompatible:

SBT-Found version conflict(s) in library dependencies; some are suspected to be binary incompatible:

相关标签: Sbt