Recently these days in learning appium, build the environment took a lot of time, have to admit that they are stupid, and then I set up the environment, write the script, the report this wrong, was a direct download from a group of demo, have to Spit Groove said, enough pit, is able to run through, you add so many jar package , it's OK, it's not that you changed the jar name, which I don't understand. I check this error, check for a day, later ruled out the law just know what, error as follows:
Java.lang.NoSuchMethodError:org.openqa.selenium.remote.ErrorHandler. (Lorg/openqa/selenium/remote/errorcodes; Z) VSolution: If your JDK and Appium install Package SDK configuration is not a problem, that is the role of the package Selenium-server-standalone-2.48.2.jar, the introduction of this jar will not be an error.hint haAppium requires two jar packagesJava-client.jarSelenium-server-standalone-2.48.2.jarmaven dependencies are as follows:
But I do not know why, I add Selenium-server-standalone-2.48.2.jar Pom, added, but still error, no way can only manually introduced the jar packagePS:: Ask a colleague tomorrow, sleep
Appium operation Error .<init> (lorg/openqa/selenium/remote/errorcodes; Z) V