java chromedriver 报错 NoSuchMethodError: com.google.common.base.Preconditions.checkState 升级Guava就可以了
public static void demo1() {
String profile = profile_rileguile;
System.setProperty("webdriver.chrome.driver", chromedriverpath); // 此处PATH替换为你的chromedriver所在路径
ChromeOptions options = new ChromeOptions();
options.addArguments("user-data-dir=" + profile);
options.addArguments("--start-maximized");
WebDriver webDriver = new ChromeDriver(options);
webDriver.get("https://bihu.com/");
}