Appium Error could not be resolved


#1

I get following error in Eclipse while running Appium scripts for Android:
java.lang.NoSuchMethodError: org.openqa.selenium.remote.http.HttpClient$Factory.createDefault()Lorg/openqa/selenium/remote/http/HttpClient$Factory;

the code for the line where error occurs looks like this:
driver = new AndroidDriver(new URL(“http://0.0.0.0:4723/wd/hub”), cap);

I tried different jar versions for the libraries but with no success.

Can someone please help me out in this

Thanks,
Prashant


#2

AndroidDriver driver=new AndroidDriver<>(new URL(“http://127.0.0.1:4723/wd/hub”),cap);


#3

driver = new AndroidDriver(new URL(“http://127.0.0.1:4723/wd/hub”), cap
);