我试图在我的自动化项目中启动 Eyes,但我收到了这个错误:
Message: java.lang.NoSuchFieldError: EXCLUDE_EMPTY
Stack Trace:
org.glassfish.jersey.client.ClientConfig$State.<init>(ClientConfig.java:147)
org.glassfish.jersey.client.ClientConfig.<init>(ClientConfig.java:457)
com.applitools.connectivity.api.HttpClientImpl.<init>(HttpClientImpl.java:26)
com.applitools.connectivity.RestClient.<init>(RestClient.java:60)
com.applitools.connectivity.ServerConnector.<init>(ServerConnector.java:42)
com.applitools.connectivity.ServerConnector.<init>(ServerConnector.java:46)
com.applitools.connectivity.ServerConnector.<init>(ServerConnector.java:50)
com.applitools.connectivity.ServerConnector.<init>(ServerConnector.java:54)
com.applitools.eyes.EyesBase.<init>(EyesBase.java:106)
com.applitools.eyes.selenium.Eyes.<init>(Eyes.java:134)
上Eyes eyes = new Eyes();
我的依赖是:
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-common</artifactId>
<version>2.31</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-jackson</artifactId>
<version>2.31</version>
</dependency>
<dependency>
<groupId>com.applitools</groupId>
<artifactId>eyes-selenium-java4</artifactId>
<version>4.14.0</version>
</dependency>
我曾尝试切换球衣版本,重新启动 Intellij,但无济于事。对于上下文,我使用 Gauge 进行自动化和 Intellij IDEA。