I am facing below issue while executing the appium test cases in real devices , the test case got executed but atlast got below erro

Hi All
I am facing below issue while executing the appium test cases in real devices , the test case got executed but atlast got below error
Jul 11, 2019 9:35:37 PM io.appium.java_client.remote.AppiumCommandExecutor$1 lambda$0
INFO: Detected dialect: W3C
Exception in thread “main” java.lang.NoClassDefFoundError: org/openqa/selenium/remote/codec/w3c/W3CHttpCommandCodec
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:262)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:41)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at io.appium.java_client.AppiumDriver.startSession(AppiumDriver.java:323)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)
at io.appium.java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:37)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:86)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:96)
at appiumtests.CalculatorTest.openCalculator(CalculatorTest.java:52)
at appiumtests.CalculatorTest.main(CalculatorTest.java:19)
Caused by: java.lang.ClassNotFoundException: org.openqa.selenium.remote.codec.w3c.W3CHttpCommandCodec
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 12 more

Can some one help me to resolve this issue

same here
same error

Same issue with the Appium Version v1.14.0…
I have been googling a solution but none of them really help.
Can someone from Appium please respond. It would be of great help…
Thanks a ton in advance…

  1. Make sure you don’t have other selenum dependencies in your maven config except of java client itself
  2. Reset the maven cache

After removing selenium-java dependencies i am facing another error

Exception in thread “main” java.lang.NoSuchMethodError: org.openqa.selenium.remote.http.HttpClient$Factory.createDefault()Lorg/openqa/selenium/remote/http/HttpClient$Factory;