appium / java-client

Java language binding for writing Appium Tests, conforms to W3C WebDriver Protocol
Apache License 2.0
1.22k stars 758 forks source link

Problem running Appium Scripts on Android #1151

Open prashantsidhpura opened 5 years ago

prashantsidhpura commented 5 years ago

The problem

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

mykola-mokhnach commented 5 years ago

This is the problem with your java client setup (missing dependencies). Moved to appropriate tracker.