• <legend id='vJSqX'><style id='vJSqX'><dir id='vJSqX'><q id='vJSqX'></q></dir></style></legend>

      <i id='vJSqX'><tr id='vJSqX'><dt id='vJSqX'><q id='vJSqX'><span id='vJSqX'><b id='vJSqX'><form id='vJSqX'><ins id='vJSqX'></ins><ul id='vJSqX'></ul><sub id='vJSqX'></sub></form><legend id='vJSqX'></legend><bdo id='vJSqX'><pre id='vJSqX'><center id='vJSqX'></center></pre></bdo></b><th id='vJSqX'></th></span></q></dt></tr></i><div id='vJSqX'><tfoot id='vJSqX'></tfoot><dl id='vJSqX'><fieldset id='vJSqX'></fieldset></dl></div>

          <bdo id='vJSqX'></bdo><ul id='vJSqX'></ul>
      1. <tfoot id='vJSqX'></tfoot>
      2. <small id='vJSqX'></small><noframes id='vJSqX'>

        NoSuchMethodError: com.google.common.base.Preconditions.chec

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

        • <small id='SaM3K'></small><noframes id='SaM3K'>

              <tbody id='SaM3K'></tbody>

          1. <legend id='SaM3K'><style id='SaM3K'><dir id='SaM3K'><q id='SaM3K'></q></dir></style></legend>
              <i id='SaM3K'><tr id='SaM3K'><dt id='SaM3K'><q id='SaM3K'><span id='SaM3K'><b id='SaM3K'><form id='SaM3K'><ins id='SaM3K'></ins><ul id='SaM3K'></ul><sub id='SaM3K'></sub></form><legend id='SaM3K'></legend><bdo id='SaM3K'><pre id='SaM3K'><center id='SaM3K'></center></pre></bdo></b><th id='SaM3K'></th></span></q></dt></tr></i><div id='SaM3K'><tfoot id='SaM3K'></tfoot><dl id='SaM3K'><fieldset id='SaM3K'></fieldset></dl></div>
              <tfoot id='SaM3K'></tfoot>

              • <bdo id='SaM3K'></bdo><ul id='SaM3K'></ul>

                  本文介绍了NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  得到以下错误:

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

                  运行时

                  System.setProperty("webdriver.chrome.driver", "/ocs/browserDrivers/chromedriver.exe");
                  //ChromeOptions chromeOptions = new ChromeOptions();
                  //chromeOptions.addArguments("start-maximized");
                  driver = new ChromeDriver();
                  

                  升级到 selenium 3.14 和 chromedriver 2.42.不是 maven 项目

                  Upgraded to selenium 3.14 and chromedriver 2.42.Not a maven project

                  推荐答案

                  这个错误信息...

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

                  ...暗示执行该行时出现错误:

                  ...implies that there was an error raised while executing the line:

                  System.setProperty("webdriver.chrome.driver", "/ocs/browserDrivers/chromedriver.exe");
                  

                  您的主要问题是 WebDriver 二进制类型与底层操作系统之间的不兼容性.

                  Your main issue is the incompatibility between the WebDriver binary type and the underlying Operating System.

                  您需要从 WebDriver 二进制文件" rel="nofollow noreferrer">chromedriver.storage 为您的程序如下:

                  You need download, extract and use the right format of the WebDriver binary from chromedriver.storage for your program as follows:

                  • Linux 操作系统:

                  • Linux OS:

                  chromedriver_linux64.tar.gz 2018-09-13 19:30:37 3.85MB
                  

                • MAC 操作系统:

                • MAC OS:

                  chromedriver_mac64.tar.gz   2018-09-13 18:14:11 5.75MB
                  

                • Windows 操作系统:

                • Windows OS:

                  chromedriver_win32.zip  2018-09-13 21:11:33 3.42MB
                  

                • 如果您使用的是 MAC OS,那么 System.setProperty() 行将是:

                  If you are using MAC OS so the System.setProperty() line would be:

                  System.setProperty("webdriver.chrome.driver", "/ocs/browserDrivers/chromedriver"); //drop the extension (.exe) part
                  

                  如果您使用的是 Windows 操作系统,那么 System.setProperty() 行将是:

                  If you are using Windows OS so the System.setProperty() line would be:

                  System.setProperty("webdriver.chrome.driver", "C:\path\to\chromedriver.exe"); //mention the absolute path
                  

                  这篇关于NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Lucene Porter Stemmer not public(Lucene Porter Stemmer 未公开)
                  How to index pdf, ppt, xl files in lucene (java based or python or php any of these is fine)?(如何在 lucene 中索引 pdf、ppt、xl 文件(基于 java 或 python 或 php 中的任何一个都可以)?)
                  KeywordAnalyzer and LowerCaseFilter/LowerCaseTokenizer(KeywordAnalyzer 和 LowerCaseFilter/LowerCaseTokenizer)
                  How to search between dates (Hibernate Search)?(如何在日期之间搜索(休眠搜索)?)
                  How to get positions from a document term vector in Lucene?(如何从 Lucene 中的文档术语向量中获取位置?)
                  Java Lucene 4.5 how to search by case insensitive(Java Lucene 4.5如何按不区分大小写进行搜索)

                  1. <i id='dkN4g'><tr id='dkN4g'><dt id='dkN4g'><q id='dkN4g'><span id='dkN4g'><b id='dkN4g'><form id='dkN4g'><ins id='dkN4g'></ins><ul id='dkN4g'></ul><sub id='dkN4g'></sub></form><legend id='dkN4g'></legend><bdo id='dkN4g'><pre id='dkN4g'><center id='dkN4g'></center></pre></bdo></b><th id='dkN4g'></th></span></q></dt></tr></i><div id='dkN4g'><tfoot id='dkN4g'></tfoot><dl id='dkN4g'><fieldset id='dkN4g'></fieldset></dl></div>
                      <bdo id='dkN4g'></bdo><ul id='dkN4g'></ul>
                        <tbody id='dkN4g'></tbody>

                      <small id='dkN4g'></small><noframes id='dkN4g'>

                      • <legend id='dkN4g'><style id='dkN4g'><dir id='dkN4g'><q id='dkN4g'></q></dir></style></legend>
                        • <tfoot id='dkN4g'></tfoot>