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",";"]]
- [ADB] 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 ;'
- [ADB] Getting IDs of all 'io.appium.settings' processes
- [ADB] Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)'
- [ADB] Starting Appium Settings app
- [ADB] 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'
- [ADB] Getting IDs of all 'io.appium.settings' processes
- [ADB] Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)'
- [ADB] Getting IDs of all 'io.appium.settings' processes
- [ADB] Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)'
- [ADB] Getting IDs of all 'io.appium.settings' processes
- [ADB] Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)'
- [ADB] Getting IDs of all 'io.appium.settings' processes
- [ADB] Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)'
- [ADB] Getting IDs of all 'io.appium.settings' processes
- [ADB] Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)'
- [ADB] Getting IDs of all 'io.appium.settings' processes
- [ADB] Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)'
- [AndroidDriver] Error: Appium Settings app is not running after 5000ms
- [AndroidDriver] 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)
- [UiAutomator2] Deleting UiAutomator2 session
- [ADB] Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell am force-stop com.richinfo.thinkmail'
- [BaseDriver] Event 'newSessionStarted' logged at 1639389656050 (18:00:56 GMT+0800 (中国标准时间))
- [W3C] Encountered internal error running command: Error: Appium Settings app is not running after 5000ms
- [W3C] 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)
- [HTTP] <-- POST /wd/hub/session 500 18635 ms - 747
复制代码
|