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路径即可。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值