Q1:The app is not installed to enable Appium Sever directly, initialize Driver:driver = new Androiddriver (New URL ("Http://127.0.0.1:4723/wd/hub"), capabilities);Error: Org.openqa.selenium.sessionnotcreatedexception:a new session could not be created. (Original error:no app set; either start Appium with--app or pass in a ' app ' value in desired capabilities, or set Android Oidpackage to launch pre-existing app on device)A1: Initialize Android driver, the object it operates must be an app (puzzled face?). ), so before you connect the simulator or the real machine, make sure the test app is installed successfully
Q2Replace the latest JAR package: Java-client-5.0.4.jar and Selenium-server-standalone-3.6.0.jar, running case error: ClassNotFoundException: Net.sf.cglib.proxy.MethodInterceptorcause: Not very clear, only know that Cglib is a library of dynamic agents, you can implement a proxy for a class object, without requiring the implementation of interfaces.A2: Download (Address: http://cglib.sourceforge.net) The latest Cglib jar package (Cglib-3.2.5.jar and Cglib-nodep-3.2.5.jar) and import the project
APPIUM-FAQ (Continuous update ... )