老师,帮帮看下我的是什么问题
[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.