Exception in thread "main" java.lang.NoSuchMethodError: 'void com.google.common.base.Preconditions.checkState(boolean, java.lang.String, java.lang.Object)'
at org.openqa.selenium.remote.service.DriverService.checkExecutable(DriverService.java:146)
at org.openqa.selenium.remote.service.DriverService$Builder.usingDriverExecutable(DriverService.java:281)
Exception in thread "main" java.lang.NoSuchMethodError: 'com.google.common.util.concurrent.SimpleTimeLimiter com.google.common.util.concurrent.SimpleTimeLimiter.create(java.util.concurrent.ExecutorService)' at org.openqa.selenium.net.UrlChecker.(UrlChecker.java:62) at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:197) at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:188)
解决办法参考:
https://stackoverflow.com/questions/48519580/selenium-in-java-stops-working-with-java-lang-illegalaccesserrorfrom-class-org
https://stackoverflow.com/questions/50284776/incompatible-library-version-selenium-guava/50287063#50287063
https://www.cnblogs.com/xiaomingtongxue123/p/9598611.html



