测试积点老人 发表于 2021-12-14 11:38:34

Appium连接真机出错:Original error: Appium Settings app is not running after ...

Appium连接真机错误提示: An unknown server-side error occurred while processing the command. Original error: Appium Settings app is not running after 5000ms
连接真机一直报错,无法启动程序,SDK检查是匹配的,尝试很多办法都不行appium日志****Got the following command chunks to execute: [["pm","grant","io.appium.settings","android.permission.SET_ANIMATION_SCALE",";","pm","grant","io.appium.settings","android.permission.CHANGE_CONFIGURATION",";","pm","grant","io.appium.settings","android.permission.ACCESS_FINE_LOCATION",";"]]
Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell pm grant io.appium.settings android.permission.SET_ANIMATION_SCALE ; pm grant io.appium.settings android.permission.CHANGE_CONFIGURATION ; pm grant io.appium.settings android.permission.ACCESS_FINE_LOCATION ;'
Getting IDs of all 'io.appium.settings' processes
Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)'
Starting Appium Settings app
Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell am start -n io.appium.settings/.Settings -a android.intent.action.MAIN -c android.intent.category.LAUNCHER'
Getting IDs of all 'io.appium.settings' processes
Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)'
Getting IDs of all 'io.appium.settings' processes
Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)'
Getting IDs of all 'io.appium.settings' processes
Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)'
Getting IDs of all 'io.appium.settings' processes
Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)'
Getting IDs of all 'io.appium.settings' processes
Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)'
Getting IDs of all 'io.appium.settings' processes
Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)'
Error: Appium Settings app is not running after 5000ms
at ADB.requireRunningSettingsApp (C:\Users\Administrator\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\settings-client-commands.js:72:11)
Deleting UiAutomator2 session
Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell am force-stop com.richinfo.thinkmail'
Event 'newSessionStarted' logged at 1639389656050 (18:00:56 GMT+0800 (中国标准时间))
Encountered internal error running command: Error: Appium Settings app is not running after 5000ms
at ADB.requireRunningSettingsApp (C:\Users\Administrator\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\settings-client-commands.js:72:11)
<-- POST /wd/hub/session 500 18635 ms - 747

qqq911 发表于 2021-12-15 12:19:23

看下权限问题

jingzizx 发表于 2021-12-15 14:00:17

没连接上

郭小贱 发表于 2021-12-15 15:18:33

参考这篇文章看下呢 https://blog.csdn.net/HelloGuoYing/article/details/108870854
页: [1]
查看完整版本: Appium连接真机出错:Original error: Appium Settings app is not running after ...