NoSuchMethodError: com.google.common.base.Preconditions.checkArgument Shardingsphere

Caused by: java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
at org.apache.shardingsphere.infra.spi.ordered.OrderedSPIRegistry.getRegisteredServices(OrderedSPIRegistry.java:90)
at org.apache.shardingsphere.infra.spi.ordered.OrderedSPIRegistry.getRegisteredServices(OrderedSPIRegistry.java:71)

使用shardingsphere时,项目中引入了版本较低的guava导致jar包冲突,升成高版本即可。

NoSuchMethodError: com.google.common.base.Preconditions.checkArgument Shardingsphere_第1张图片


    com.google.guava
    guava
    20.0

你可能感兴趣的:(#,Java基础,java)