ztwo/Auto_Analysis

android并行连跑,报错“Original error: 'Command '/usr/local/opt/Android/sdk/platform-tools/adb -P 5037 -s CVH7N16630000282 wait-for-device' timed out ”

zhugehui9527 opened this issue · 3 comments

`2017-06-21 11:15:25 [Success]:run:__get_appium_port, return:4812
2017-06-21 11:15:31 [Error]:Failed to start appium :Message: An unknown server-side error occurred while processing the command. Original error: Error in waiting for device. Original error: 'Error executing adbExec. Original error: 'Command '/usr/local/opt/Android/sdk/platform-tools/adb -P 5037 -s CVH7N16630000282 wait-for-device' timed out after 10000ms'; Stderr: ''; Code: 'null''. Retrying by restarting ADB

2017-06-21 11:15:31 [Error]:Try restarting the appium :CVH7N16630000282,Trying the 1 frequency
2017-06-21 11:15:39 [Debug]:[Appium] Welcome to Appium v1.6.5 (REV 2176894a5be5da17a362bf3f20678641a78f4b69)
`

ztwo commented

看样子像获取devices失败超时,确认下你手机与电脑是否链接。或者appium安装setting等apk时需要点击确认。目前不是所有手机都有自动捕获确认键,需要维护确认installApp内的列表

▶ adb devices
List of devices attached
0316032597351f04 device
CVH7N16630000282 device
设备都是连着的,没有出现权限需要确认的页面,而且很奇怪,我单独跑一个设备,是可以的,但是跑两个设备,就报上面的错误。

这个问题已经解决,原因是adb版本的问题,换了一个版本就好了