请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

老师我前面代码跑通了 可以在pycharm控制模拟器 但是appium inspector这里报错了

WebDriverError: Error getting device API level. Original error: Error executing adbExec. Original error: ‘Command ‘E:\AndroidSDK\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk’ exited with code 1’; Command output: adb.exe: device offline when running “http://127.0.0.1:4723/session” with method “POST” and args “{“capabilities”:{“alwaysMatch”:{“platformName”:“Android”,“appium:automationName”:“UiAutomator2”,“appium:deviceName”:“emulator-5554”,“appium:appPackage”:“com.android.settings”,“appium:appActivity”:“com.android.settings.Settings”,“appium:ensureWebviewsHavePages”:true,“appium:nativeWebScreenshot”:true,“appium:newCommandTimeout”:3600,“appium:connectHardwareKeyboard”:true},“firstMatch”:[{}]}}”

正在回答 回答被采纳积分+3

1回答

小布_老师 2025-11-17 23:37:18

 adb.exe: device offline

当运行adb命令时,设备离线了。检查下设备,是物理连接断了,还是虚拟机重启了。

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号