java.lang.NoSuchMethodError: com.google.common.base.Preconditions

前端 未结 2 1921
野趣味
野趣味 2021-01-27 15:53

Im getting this error

java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/         


        
2条回答
  •  不知归路
    2021-01-27 16:06

    Looks like a classpath issue. What version of guava-X.jar do you have in our classpath? (most probably in WEB-INF/lib of webapp). Possible solution is to declare latest version of guava in your pom.xml explicitly. For 3.10.0 of selenium, you need:

    
    
        com.google.guava
        guava
        24.0-jre
    
    

提交回复
热议问题