Details: Problem getting session data for driver type AndroidDriver; does it implement 'get driverData'?

Could not find a connected Android device.org.openqa.selenium.SessionNotCreatedException: A new session could not be created. Details: Problem getting session data for driver type AndroidDriver; does it implement ‘get driverData’? (WARNING: The server did not provide any stacktrace information)Command duration or timeout: 5 millisecondsBuild info: version: ‘3.4.0’, revision: ‘unknown’, time: 'unknown’System info: host: ‘MPSs-Mac-Pro.local’, ip: ‘10.10.100.205’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.12.5’, java.version: '1.8.0_131’Driver info: driver.version: AndroidDriver

I’m randomly getting the above error when running test in sequence.

Any idea?

Thanks

DD

I noticed there was either a Session-override or a full-reset node that was getting killed. I’ve added the below lines, and I haven’t run into the issue since.

//Kill Node Session-override
String[] command3 = {“sh”, “-c”, "ps aux | grep session-override | awk ‘{print $2}’|xargs kill -9 "};
try {Runtime.getRuntime().exec(command3);
System.out.println(“Appium session-override stopped.”);}catch (IOException e) {e.printStackTrace();}
//Kill Node full-reset
String[] command4 = {“sh”, “-c”, "ps aux | grep full-reset | awk ‘{print $2}’|xargs kill -9 "};
try {Runtime.getRuntime().exec(command4);
System.out.println(“Appium full-reset stopped.”);}catch (IOException e) {e.printStackTrace();}