请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

Failed to launch Appium Settings app: Condition unmet after 5039 ms. Timing out

老师,帮帮看下我的是什么问题
[BaseDriver] Session created with session id: 20ea0340-d52e-434d-95de-05254f3ba463
[BaseDriver] Using local app ‘E:\tools\app\mukewang.apk’
[UiAutomator2] Checking whether app is actually present
[ADB] Using ‘adb.exe’ from ‘C:\Java\sdk\platform-tools\adb.exe’
[AndroidDriver] Retrieving device list
[ADB] Trying to find a connected android device
[ADB] Getting connected devices…
[ADB] Connected devices: [{“udid”:“127.0.0.1:21503”,“state”:“device”},{“udid”:“a94fddfb”,“state”:“device”}]
[AndroidDriver] Using device: 127.0.0.1:21503
[ADB] Using ‘adb.exe’ from ‘C:\Java\sdk\platform-tools\adb.exe’
[ADB] Setting device id to 127.0.0.1:21503
[ADB] Running ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 shell getprop ro.build.version.sdk’
[ADB] Current device property ‘ro.build.version.sdk’: 22
[ADB] Device API level: 22
[AndroidDriver] Parsing package and activity from app manifest
[ADB] Using the alternative activity name detection method because of: Could not find ‘apkanalyzer.bat’ in [“C:\Java\sdk\platform-tools\apkanalyzer.bat”,“C:\Java\sdk\emulator\apkanalyzer.bat”,“C:\Java\sdk\tools\apkanalyzer.bat”,“C:\Java\sdk\tools\bin\apkanalyzer.bat”,“C:\Java\sdk\build-tools\android-4.3\apkanalyzer.bat”]. Do you have Android Build Tools installed at ‘C:\Java\sdk’?
[ADB] Using ‘aapt.exe’ from ‘C:\Java\sdk\tools\aapt.exe’
[ADB] Extracting package and launch activity from manifest
[ADB] Package name: ‘cn.com.open.mooc’
[ADB] Main activity name: ‘cn.com.open.mooc.index.splash.MCSplashActivity’
[AndroidDriver] Parsed package and activity are: cn.com.open.mooc/cn.com.open.mooc.index.splash.MCSplashActivity
[ADB] Running ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 wait-for-device’
[ADB] Running ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 shell echo ping’
[AndroidDriver] Pushing settings apk to device…
[ADB] Getting install status for io.appium.settings
[ADB] Running ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 shell dumpsys package io.appium.settings’
[ADB] ‘io.appium.settings’ is installed
[ADB] Getting package info for ‘io.appium.settings’
[ADB] Running ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 shell dumpsys package io.appium.settings’
[ADB] Cannot extract apk info using apkanalyzer. Falling back to aapt. Original error: Could not find ‘apkanalyzer.bat’ in [“C:\Java\sdk\platform-tools\apkanalyzer.bat”,“C:\Java\sdk\emulator\apkanalyzer.bat”,“C:\Java\sdk\tools\apkanalyzer.bat”,“C:\Java\sdk\tools\bin\apkanalyzer.bat”,“C:\Java\sdk\build-tools\android-4.3\apkanalyzer.bat”]. Do you have Android Build Tools installed at ‘C:\Java\sdk’?
[ADB] The version name of the installed ‘io.appium.settings’ is greater or equal to the application version name (‘2.14.2’ >= ‘2.14.2’)
[ADB] There is no need to install/upgrade ‘C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk’
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 shell ‘pgrep --help; echo $?’’
[ADB] Running ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 shell pgrep ^appium\.settings$’
[AndroidDriver] Granting android.permission.SET_ANIMATION_SCALE, CHANGE_CONFIGURATION, ACCESS_FINE_LOCATION by pm grant
[ADB] Granting permissions [“android.permission.SET_ANIMATION_SCALE”,“android.permission.CHANGE_CONFIGURATION”,“android.permission.ACCESS_FINE_LOCATION”] to ‘io.appium.settings’
[ADB] 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 ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 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] Running ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 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 ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 shell pgrep ^appium\.settings$’
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 shell pgrep ^appium\.settings$’
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 shell pgrep ^appium\.settings$’
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 shell pgrep ^appium\.settings$’
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 shell pgrep ^appium\.settings$’
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 shell pgrep ^appium\.settings$’
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 shell pgrep ^appium\.settings$’
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 shell pgrep ^appium\.settings$’
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 shell pgrep ^appium\.settings$’
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 shell pgrep ^appium\.settings$’
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 shell pgrep ^appium\.settings$’
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 shell pgrep ^appium\.settings$’
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 shell pgrep ^appium\.settings$’
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 shell pgrep ^appium\.settings$’
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 shell pgrep ^appium\.settings$’
[AndroidDriver] Failed to launch Appium Settings app: Condition unmet after 5222 ms. Timing out.
[UiAutomator2] Deleting UiAutomator2 session
[ADB] Running ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 shell am force-stop cn.com.open.mooc’
[ADB] Removing forwarded port socket connection: 8200
[ADB] Running ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 forward --remove tcp:8200’
[UiAutomator2] Unable to remove port forward ‘Error executing adbExec. Original error: ‘Command ‘C:\Java\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 forward --remove tcp:8200’ exited with code 1’; Stderr: ‘error: cannot remove listener’; Code: ‘1’’
[BaseDriver] Event ‘newSessionStarted’ logged at 1572507110179 (15:31:50 GMT+0800 (中国标准时间))
[W3C] Encountered internal error running command: Error: Failed to launch Appium Settings app: Condition unmet after 5222 ms. Timing out.
[W3C] at spin (C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\asyncbox\lib\asyncbox.js:127:9)
[HTTP] <-- POST /wd/hub/session 500 7592 ms - 792
[HTTP]

selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Failed to launch Appium Settings app: Condition unmet after 5222 ms. Timing out.

正在回答

2回答

你用的最新版?如果你是同一个手机 同样的代码,但是不同版本的appoum有问题 这个就是兼容问题了,但是错误很诡异的是告诉你setting无法安装,这个你不用最新的尝试一下,去appium官网git看一下

0 回复 有任何疑惑可以回复我~
  • 提问者 weixin_慕用2225225 #1
    非常感谢!我换回你提供的版本Appium v1.7.2,就没有问题,之前在github下的v.1.15.1出现的这个问题,手机可以正常启动,逍遥模拟器就一直报这个错误
    回复 有任何疑惑可以回复我~ 2019-11-01 10:05:25
  • Mushishi 回复 提问者 weixin_慕用2225225 #2
    哈哈,差距太大,你也可以把你activity指定后看能否可以。
    回复 有任何疑惑可以回复我~ 2019-11-02 14:55:42
提问者 weixin_慕用2225225 2019-10-31 16:02:20

老师,这个是不是appium版本的问题,我用的1.15.1版本就有这个问题

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信