51Testing软件测试论坛

标题: Appium连接真机出错:Original error: Appium Settings app is not running after ... [打印本页]

作者: 测试积点老人    时间: 2021-12-14 11:38
标题: 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日志****
  1. 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",";"]]
  2. [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 ;'
  3. [ADB] Getting IDs of all 'io.appium.settings' processes
  4. [ADB] Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)'
  5. [ADB] Starting Appium Settings app
  6. [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'
  7. [ADB] Getting IDs of all 'io.appium.settings' processes
  8. [ADB] Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)'
  9. [ADB] Getting IDs of all 'io.appium.settings' processes
  10. [ADB] Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)'
  11. [ADB] Getting IDs of all 'io.appium.settings' processes
  12. [ADB] Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)'
  13. [ADB] Getting IDs of all 'io.appium.settings' processes
  14. [ADB] Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)'
  15. [ADB] Getting IDs of all 'io.appium.settings' processes
  16. [ADB] Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)'
  17. [ADB] Getting IDs of all 'io.appium.settings' processes
  18. [ADB] Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)'
  19. [AndroidDriver] Error: Appium Settings app is not running after 5000ms
  20. [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)
  21. [UiAutomator2] Deleting UiAutomator2 session
  22. [ADB] Running 'D:\SDK_new\SDK\platform-tools\adb.exe -P 5037 -s X2P0215729001143 shell am force-stop com.richinfo.thinkmail'
  23. [BaseDriver] Event 'newSessionStarted' logged at 1639389656050 (18:00:56 GMT+0800 (中国标准时间))
  24. [W3C] Encountered internal error running command: Error: Appium Settings app is not running after 5000ms
  25. [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)
  26. [HTTP] <-- POST /wd/hub/session 500 18635 ms - 747
复制代码



作者: qqq911    时间: 2021-12-15 12:19
看下权限问题
作者: jingzizx    时间: 2021-12-15 14:00
没连接上
作者: 郭小贱    时间: 2021-12-15 15:18
参考这篇文章看下呢 https://blog.csdn.net/HelloGuoYing/article/details/108870854




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2