The server is running
[Appium] Welcome to Appium v1.15.1
[Appium] Non-default server args:
[Appium] allowInsecure: {
[Appium] }
[Appium] denyInsecure: {
[Appium] }
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session
[HTTP] {“capabilities”:{“firstMatch”:[{“platformName”:“Android”,“appium:deviceName”:“127.0.0.1:21503”,“appium:app”:“E:\android\mukewang.apk”,“appium:appPackage”:“cn.com.open.mooc”,“appium:appActivity”:“cn.com.open.mooc.index.splash.MCSplashActivity”}]},“desiredCapabilities”:{“platformName”:“Android”,“deviceName”:“127.0.0.1:21503”,“app”:“E:\android\mukewang.apk”,“appPackage”:“cn.com.open.mooc”,“appActivity”:“cn.com.open.mooc.index.splash.MCSplashActivity”}}
[W3C] Calling AppiumDriver.createSession() with args: [{“platformName”:“Android”,“deviceName”:“127.0.0.1:21503”,“app”:“E:\android\mukewang.apk”,“appPackage”:“cn.com.open.mooc”,“appActivity”:“cn.com.open.mooc.index.splash.MCSplashActivity”},null,{“firstMatch”:[{“platformName”:“Android”,“appium:deviceName”:“127.0.0.1:21503”,“appium:app”:“E:\android\mukewang.apk”,“appium:appPackage”:“cn.com.open.mooc”,“appium:appActivity”:“cn.com.open.mooc.index.splash.MCSplashActivity”}]}]
[BaseDriver] Event ‘newSessionRequested’ logged at 1575537265209 (17:14:25 GMT+0800 (中国标准时间))
[Appium]
[Appium] ======================================================================
[Appium] DEPRECATION WARNING:
[Appium]
[Appium] The ‘automationName’ capability was not provided in the desired
[Appium] capabilities for this Android session
[Appium]
[Appium] Setting ‘automationName=UiAutomator2’ by default and using the
[Appium] UiAutomator2 Driver
[Appium]
[Appium] The next major version of Appium (2.x) will require the
[Appium] ‘automationName’ capability to be set for all sessions on all
[Appium] platforms
[Appium]
[Appium] In previous versions (Appium <= 1.13.x), the default was
[Appium] ‘automationName=UiAutomator1’
[Appium]
[Appium] If you wish to use that automation instead of UiAutomator2, please
[Appium] add ‘automationName=UiAutomator1’ to your desired capabilities
[Appium]
[Appium] For more information about drivers, please visit
[Appium] http://appium.io/docs/en/about-appium/intro/ and explore the
[Appium] ‘Drivers’ menu
[Appium]
[Appium] ======================================================================
[Appium]
[Appium] Appium v1.15.1 creating new AndroidUiautomator2Driver (v1.37.2) session
[BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
[BaseDriver] Creating session with W3C capabilities: {
[BaseDriver] “alwaysMatch”: {
[BaseDriver] “platformName”: “Android”,
[BaseDriver] “appium:deviceName”: “127.0.0.1:21503”,
[BaseDriver] “appium:app”: “E:\android\mukewang.apk”,
[BaseDriver] “appium:appPackage”: “cn.com.open.mooc”,
[BaseDriver] “appium:appActivity”: “cn.com.open.mooc.index.splash.MCSplashActivity”
[BaseDriver] },
[BaseDriver] “firstMatch”: [
[BaseDriver] {}
[BaseDriver] ]
[BaseDriver] }
[BaseDriver] Session created with session id: e7e6b02d-131c-4c7c-9407-ebdfb0864bf7
[BaseDriver] Using local app ‘E:androidmukewang.apk’
[UiAutomator2] Checking whether app is actually present
[ADB] Found 1 ‘build-tools’ folders under ‘E:androidsdk’ (newest first):
[ADB] E:/android/sdk/build-tools/android-4.3
[ADB] Using ‘adb.exe’ from ‘E:androidsdkplatform-toolsadb.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”}]
[AndroidDriver] Using device: 127.0.0.1:21503
[ADB] Using ‘adb.exe’ from ‘E:androidsdkplatform-toolsadb.exe’
[ADB] Setting device id to 127.0.0.1:21503
[ADB] Running ‘E:androidsdkplatform-toolsadb.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
[ADB] Running ‘E:androidsdkplatform-toolsadb.exe -P 5037 -s 127.0.0.1:21503 wait-for-device’
[ADB] Running ‘E:androidsdkplatform-toolsadb.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 ‘E:androidsdkplatform-toolsadb.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 ‘E:androidsdkplatform-toolsadb.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 [“E:\android\sdk\platform-tools\apkanalyzer.bat”,“E:\android\sdk\emulator\apkanalyzer.bat”,“E:\android\sdk\tools\apkanalyzer.bat”,“E:\android\sdk\tools\bin\apkanalyzer.bat”,“E:\android\sdk\build-tools\android-4.3\apkanalyzer.bat”]. Do you have Android Build Tools installed at ‘E:androidsdk’?
[ADB] Using ‘aapt.exe’ from ‘E:androidsdk oolsaapt.exe’
[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 FilesAppium
esourcesapp
ode_modulesappium
ode_modulesio.appium.settingsapkssettings_apk-debug.apk’
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running 'E:androidsdkplatform-toolsadb.exe -P 5037 -s 127.0.0.1:21503 shell 'pgrep --help; echo KaTeX parse error: Can't use function '\.' in math mode at position 100: …l 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 ‘E:androidsdkplatform-toolsadb.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 ‘E:androidsdkplatform-toolsadb.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 ‘E:androidsdkplatform-toolsadb.exe -P 5037 -s 127.0.0.1:21503 shell pgrep ^appium.settingsKaTeX parse error: Can't use function '\.' in math mode at position 154: …l pgrep ^appium\̲.̲settings’
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running ‘E:androidsdkplatform-toolsadb.exe -P 5037 -s 127.0.0.1:21503 shell pgrep ^appium.settingsKaTeX parse error: Can't use function '\.' in math mode at position 154: …l pgrep ^appium\̲.̲settings’
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running ‘E:androidsdkplatform-toolsadb.exe -P 5037 -s 127.0.0.1:21503 shell pgrep ^appium.settingsKaTeX parse error: Can't use function '\.' in math mode at position 154: …l pgrep ^appium\̲.̲settings’
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running ‘E:androidsdkplatform-toolsadb.exe -P 5037 -s 127.0.0.1:21503 shell pgrep ^appium.settingsKaTeX parse error: Can't use function '\.' in math mode at position 154: …l pgrep ^appium\̲.̲settings’
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running ‘E:androidsdkplatform-toolsadb.exe -P 5037 -s 127.0.0.1:21503 shell pgrep ^appium.settingsKaTeX parse error: Can't use function '\.' in math mode at position 154: …l pgrep ^appium\̲.̲settings’
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running ‘E:androidsdkplatform-toolsadb.exe -P 5037 -s 127.0.0.1:21503 shell pgrep ^appium.settingsKaTeX parse error: Can't use function '\.' in math mode at position 154: …l pgrep ^appium\̲.̲settings’
[AndroidDriver] Failed to launch Appium Settings app: Condition unmet after 5151 ms. Timing out.
[UiAutomator2] Deleting UiAutomator2 session
[ADB] Running ‘E:androidsdkplatform-toolsadb.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 ‘E:androidsdkplatform-toolsadb.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 ‘E:\android\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21503 forward --remove tcp:8200’ exited with code 1’; Stderr: ‘error: malformed forward spec’; Code: ‘1’’
[BaseDriver] Event ‘newSessionStarted’ logged at 1575537274265 (17:14:34 GMT+0800 (中国标准时间))
[W3C] Encountered internal error running command: Error: Failed to launch Appium Settings app: Condition unmet after 5151 ms. Timing out.
[W3C] at spin (C:Program FilesAppium
esourcesapp
ode_modulesappium
ode_modulesasyncboxlibasyncbox.js:127:9)
[HTTP] <-- POST /wd/hub/session 500 9085 ms - 792
[HTTP]