Appium和Genymotion的adb错误

问题:
利用python调用appium去操作genymotion时,报出以下错误:

> error: Failed to start an Appium session, err was: Error: Command failed: C:\Windows\system32\cmd.exe /s /c "C:\Android\sdk\platform-tools\adb.exe -s adb server version (36) doesn't match this client (39); killing...
>  wait-for-device"
> error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: 閫氬父姣忎釜濂楁帴瀛楀湴鍧€(鍗忚/缃戠粶鍦板潃/绔彛)鍙厑璁镐娇鐢ㄤ竴娆°€?(10048)
> 
> This application has requested the Runtime to terminate it in an unusual way.
> Please contact the application's support team for more information.
> could not read ok from ADB Server
> * could not start server *
> 
> info: <-- POST /wd/hub/session 500 26942.971 ms - 1508 

解决:
这是因为appium和genymotion试用的adb版本不一致,直接打开genymotion的Setting,切换到第四个标签页(ADB),选择Use custom Android Sdk tools,然后选择我们自己安装的Android sdk路径即可。

你可能感兴趣的:(其他)