0

We are trying to integrate report portal with mobile automation framework. In the framework we are using Appium, Selenium and TestNG. We have added Report portal dependencies and at the time of execution, we can see the launches in report portal but the execution is getting failed with following exception:

java.lang.NoSuchMethodError: com.google.common.collect.ImmutableList.tolmmutableList() Ljava/util/stream/Collector;
at io.appium.java_client.remote.NewAppiumSessionPayload.getW3C (NewAppiumSessionPayload.java:367)

We tried changing Appium and Report portal dependency versions.

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
Suraj
  • 1

1 Answers1

1

This error message...

java.lang.NoSuchMethodError: com.google.common.collect.ImmutableList.tolmmutableList() Ljava/util/stream/Collector;

...implies that there are conflicting/multiple versions of guava at play.

Possibly Report portal dependencies adds the second version of guava. Resolve the interdependency and you would be good to go.

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
  • I tried bellow solutions for conflicting/multiple versions of guava, but getting same error .. 1. 2.   3. maven-enforcer-plugin And – Suraj Feb 21 '23 at 13:48