appium-android

java.lang.NoSuchMethodError: 'void org.openqa.selenium.remote.http.ClientConfig.<init>(java.net.URI, java.time.Duration, java.time.Duratio


I m getting below error message when i try to launch the app in rela device, please help if any one face and solved already.

java.lang.NoSuchMethodError: 'void org.openqa.selenium.remote.http.ClientConfig.(java.net.URI, java.time.Duration, java.time.Duration, org.openqa.selenium.remote.http.Filter, java.net.Proxy, org.openqa.selenium.Credentials)'


Solution

  • Adding this to my pom.xml file fixed it for me

    <dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-remote-driver</artifactId>
            <version>4.13.0</version>
    </dependency>
    

    I'm guessing a new version got released that created this error, setting the version to this one should work.

    Let me know if this works for u too