1、解决-重启adb服务
(adb相关的报错,基本都可以试试重启服务,重启大法向来好使!)
adb kill-server
adb start-server
2、完整报错
E selenium.common.exceptions.WebDriverException: Message:
An unknown server-side error occurred while processing the command.
Original error: Error executing adbExec. Original error:
'Command '/Users/tf1/Library/Android/sdk/platform-tools/adb -P 5037 -s 3158044531001O3 shell
'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy''
exited with code 20'; Command output: cmd: Can't find service: settings
E cmd: Can

文章讲述了在遇到adb相关错误时,重启服务是一种常见的解决方法。具体问题表现为执行adb命令时遇到server-side错误,与hidden_api_policy设置有关,导致代码20的退出状态。解决步骤可能包括检查并调整Android设备或模拟器的设置。
最低0.47元/天 解锁文章
958

被折叠的 条评论
为什么被折叠?



