appium-desktop设置好参数点击“start session”启动时报错:Original error: Could not find a connected Android device

遇到Appium Desktop启动安卓设备时出现找不到设备或权限问题?检查USB连接,开启开发者选项中的USB文件传输(MTP),并授权安装应用。如问题依旧,一起探讨解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题:appium-desktop设置好参数点击“start session”启动时报错之:

1.youneed the android pemission,install_grant...

2.Original error: Could not find a connected Android device

找不到设备

could not find a connected android device

分析:很明显,根据提示来看,图1、appium-desktop没能找到已连接的安卓设备;图2、设备没有给安装应用授权。

解决:1、检查数据线是否完好;2、手机设置开发者模式,并打开USB用途"传输文件(MTP);3、手机设置 授权安装应用

如果按照上面的解决方法操作,还有问题,欢迎一起交流~觉得对您解决问题有帮助的亲,打赏支持一下吧。

 

Traceback (most recent call last): File "D:\Desktop\app_test\app_test.py", line 37, in <module> driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps) # 连接appium server(需先启动appium server) File "D:\Desktop\app_test\venv\lib\site-packages\appium\webdriver\webdriver.py", line 234, in __init__ super().__init__( File "D:\Desktop\app_test\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 286, in __init__ self.start_session(capabilities, browser_profile) File "D:\Desktop\app_test\venv\lib\site-packages\appium\webdriver\webdriver.py", line 324, in start_session response = self.execute(RemoteCommand.NEW_SESSION, w3c_caps) File "D:\Desktop\app_test\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 440, in execute self.error_handler.check_response(response) File "D:\Desktop\app_test\venv\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 245, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Could not find a connected Android device. Stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not find a connected Android device. at getResponseForW3CError (C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:804:9) at asyncHandler (C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\protocol\protocol.js:388:37) at process._tickCallback (internal/process/next_tick.js:68:7)
06-02
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

qq_1311209878

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值