[info] [Appium] Welcome to Appium v1.17.0 [info] [Appium] Non-default server args: [info] [Appium] allowInsecure: { [info] [Appium] } [info] [Appium] denyInsecure: { [info] [Appium] } [info] [Appium] Appium REST http interface listener started on 0.0.0.0:4723[info] [HTTP] --> POST /wd/hub/session [info] [HTTP] {"desiredCapabilities":{"deviceName":"192.168.202.101:5555","platformName":"Android","newCommandTimeout":0,"connectHardwareKeyboard":true}} [debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"deviceName":"192.168.202.101:5555","platformName":"Android","newCommandTimeout":0,"connectHardwareKeyboard":true},null,null] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1589991768161 (00:22:48 GMT+0800 (中国标准时间)) [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] DEPRECATION WARNING: [warn] [Appium] [warn] [Appium] The 'automationName' capability was not provided in the desired [warn] [Appium] capabilities for this Android session [warn] [Appium] [warn] [Appium] Setting 'automationName=UiAutomator2' by default and using the [warn] [Appium] UiAutomator2 Driver [warn] [Appium] [warn] [Appium] The next major version of Appium (2.x) will **require** the [warn] [Appium] 'automationName' capability to be set for all sessions on all [warn] [Appium] platforms [warn] [Appium] [warn] [Appium] In previous versions (Appium <= 1.13.x), the default was [warn] [Appium] 'automationName=UiAutomator1' [warn] [Appium] [warn] [Appium] If you wish to use that automation instead of UiAutomator2, please [warn] [Appium] add 'automationName=UiAutomator1' to your desired capabilities [warn] [Appium] [warn] [Appium] For more information about drivers, please visit [warn] [Appium] http://appium.io/docs/en/about-appium/intro/ and explore the [warn] [Appium] 'Drivers' menu [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] [info] [Appium] Appium v1.17.0 creating new AndroidUiautomator2Driver (v1.44.2) session [debug] [BaseDriver] Creating session with MJSONWP desired capabilities: { [debug] [BaseDriver] "deviceName": "192.168.202.101:5555", [debug] [BaseDriver] "platformName": "Android", [debug] [BaseDriver] "newCommandTimeout": 0, [debug] [BaseDriver] "connectHardwareKeyboard": true [debug] [BaseDriver] } [warn] [BaseDriver] The following capabilities were provided, but are not recognized by Appium: [warn] [BaseDriver] connectHardwareKeyboard [info] [BaseDriver] Session created with session id: 17e4482a-6273-407c-b1c1-62d7eabf62d6 [info] [UiAutomator2] Neither 'app' nor 'appPackage' was set. Starting UiAutomator2 without the target application[debug] [ADB] Connected devices: [{"udid":"192.168.202.101:5555","state":"device"}] [info] [AndroidDriver] Using device: 192.168.202.101:5555 [info] [ADB] Using 'adb.exe' from 'D:\software\appium\android-sdk-windows\platform-tools\adb.exe' [debug] [ADB] Setting device id to 192.168.202.101:5555 [debug] [ADB] Running 'D:\software\appium\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 192.168.202.101\:5555 shell getprop ro.build.version.sdk'[debug] [ADB] Current device property 'ro.build.version.sdk': 23 [debug] [ADB] Device API level: 23 [warn] [AndroidDriver] No app sent in, not parsing package/activity [debug] [ADB] Running 'D:\software\appium\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 192.168.202.101\:5555 wait-for-device'[debug] [ADB] Running 'D:\software\appium\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 192.168.202.101\:5555 shell echo ping' [debug] [AndroidDriver] Pushing settings apk to device... [debug] [ADB] Getting install status for io.appium.settings [debug] [ADB] Running 'D:\software\appium\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 192.168.202.101\:5555 shell dumpsys package io.appium.settings'[debug] [ADB] 'io.appium.settings' is installed [debug] [ADB] Getting package info for 'io.appium.settings' [debug] [ADB] Running 'D:\software\appium\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 192.168.202.101\:5555 shell dumpsys package io.appium.settings' [debug] [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.1.0' >= '3.1.0') [debug] [ADB] There is no need to install/upgrade 'C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk' [debug] [ADB] Getting IDs of all 'io.appium.settings' processes [debug] [ADB] Running 'D:\software\appium\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 192.168.202.101\:5555 shell 'pgrep --help; echo $?''[debug] [ADB] Running 'D:\software\appium\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 192.168.202.101\:5555 shell pgrep -f io\\.appium\\.settings' [debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions. [debug] [ADB] Running 'D:\software\appium\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 192.168.202.101\:5555 shell appops set io.appium.settings android\:mock_location allow'[debug] [Logcat] Starting logcat capture[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8200 [debug] [ADB] Forwarding system: 8200 to device: 6790 [debug] [ADB] Running 'D:\software\appium\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 192.168.202.101\:5555 forward tcp\:8200 tcp\:6790' [debug] [ADB] Getting install status for io.appium.uiautomator2.server [debug] [ADB] Running 'D:\software\appium\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 192.168.202.101\:5555 shell dumpsys package io.appium.uiautomator2.server'[debug] [ADB] 'io.appium.uiautomator2.server' is installed [debug] [ADB] Getting package info for 'io.appium.uiautomator2.server' [debug] [ADB] Running 'D:\software\appium\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 192.168.202.101\:5555 shell dumpsys package io.appium.uiautomator2.server' [debug] [ADB] The version name of the installed 'io.appium.uiautomator2.server' is greater or equal to the application version name ('4.5.5' >= '4.5.5') [debug] [UiAutomator2] io.appium.uiautomator2.server installation state: sameVersionInstalled [debug] [ADB] Checking app cert for C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.5.5.apk [info] [ADB] Using 'apksigner.jar' from 'D:\software\appium\android-sdk-windows\build-tools\30.0.0-preview\lib\apksigner.jar' [debug] [ADB] Starting apksigner: 'D:\\Program Files\\java\\jdk1.8.0_251\\bin\\java.exe' -Xmx1024M -Xss1m -jar D:\\software\\appium\\android-sdk-windows\\build-tools\\30.0.0-preview\\lib\\apksigner.jar verify --print-certs C:\\Users\\Administrator\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-v4.5.5.apk[warn] [ADB] Cannot use apksigner tool for signature verification. Original error: Command ''D:\\Program Files\\java\\jdk1.8.0_251\\bin\\java.exe' -Xmx1024M -Xss1m -jar D:\\software\\appium\\android-sdk-windows\\build-tools\\30.0.0-preview\\lib\\apksigner.jar verify --print-certs C:\\Users\\Administrator\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-v4.5.5.apk' exited with code 1 [debug] [ADB] Defaulting to verify.jar[debug] [ADB] 'C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.5.5.apk' is signed with the default certificate [debug] [ADB] Getting install status for io.appium.uiautomator2.server.test [debug] [ADB] Running 'D:\software\appium\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 192.168.202.101\:5555 shell dumpsys package io.appium.uiautomator2.server.test'[debug] [ADB] 'io.appium.uiautomator2.server.test' is not installed [debug] [ADB] Checking app cert for C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk [debug] [ADB] Starting apksigner: 'D:\\Program Files\\java\\jdk1.8.0_251\\bin\\java.exe' -Xmx1024M -Xss1m -jar D:\\software\\appium\\android-sdk-windows\\build-tools\\30.0.0-preview\\lib\\apksigner.jar verify --print-certs C:\\Users\\Administrator\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-debug-androidTest.apk [warn] [ADB] Cannot use apksigner tool for signature verification. Original error: Command ''D:\\Program Files\\java\\jdk1.8.0_251\\bin\\java.exe' -Xmx1024M -Xss1m -jar D:\\software\\appium\\android-sdk-windows\\build-tools\\30.0.0-preview\\lib\\apksigner.jar verify --print-certs C:\\Users\\Administrator\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-debug-androidTest.apk' exited with code 1 [debug] [ADB] Defaulting to verify.jar[debug] [ADB] 'C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' is signed with the default certificate [info] [UiAutomator2] Server packages are going to be (re)installed [debug] [ADB] Running 'D:\software\appium\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 192.168.202.101\:5555 help' [debug] [ADB] Running 'D:\software\appium\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 192.168.202.101\:5555 features'[debug] [ADB] Running 'D:\software\appium\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 192.168.202.101\:5555 shell 'ls -t -1 /data/local/tmp/appium_cache 2>&1 || echo _ERROR_'' [debug] [ADB] The current Android API does not support extended ls options. Defaulting to no-options call [debug] [ADB] Running 'D:\software\appium\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 192.168.202.101\:5555 shell 'ls /data/local/tmp/appium_cache 2>&1 || echo _ERROR_''[debug] [ADB] The count of applications in the cache: 3 [info] [ADB] The application at 'C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.5.5.apk' is already cached to '/data/local/tmp/appium_cache/75e2638551246b73c8e1fef0017fc2163110ac3c.apk' [debug] [ADB] Running 'D:\software\appium\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 192.168.202.101\:5555 shell touch -am /data/local/tmp/appium_cache/75e2638551246b73c8e1fef0017fc2163110ac3c.apk' [debug] [ADB] Running 'D:\software\appium\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 192.168.202.101\:5555 shell pm install -r /data/local/tmp/appium_cache/75e2638551246b73c8e1fef0017fc2163110ac3c.apk'[info] [ADB] The installation of 'appium-uiautomator2-server-v4.5.5.apk' took 2266ms [debug] [ADB] Install command stdout: pkg: /data/local/tmp/appium_cache/75e2638551246b73c8e1fef0017fc2163110ac3c.apk [debug] [ADB] Success [debug] [ADB] Running 'D:\software\appium\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 192.168.202.101\:5555 shell 'ls /data/local/tmp/appium_cache 2>&1 || echo _ERROR_''[debug] [ADB] The count of applications in the cache: 3 [info] [ADB] The application at 'C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' is already cached to '/data/local/tmp/appium_cache/8d4156e508daae39c3f4815552e22e311432ff1f.apk' [debug] [ADB] Running 'D:\software\appium\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 192.168.202.101\:5555 shell touch -am /data/local/tmp/appium_cache/8d4156e508daae39c3f4815552e22e311432ff1f.apk' [debug] [ADB] Running 'D:\software\appium\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 192.168.202.101\:5555 shell pm install -r /data/local/tmp/appium_cache/8d4156e508daae39c3f4815552e22e311432ff1f.apk'[info] [ADB] The installation of 'appium-uiautomator2-server-debug-androidTest.apk' took 404ms [debug] [ADB] Install command stdout: pkg: /data/local/tmp/appium_cache/8d4156e508daae39c3f4815552e22e311432ff1f.apk [debug] [ADB] Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES] [debug] [UiAutomator2] Deleting UiAutomator2 session [debug] [UiAutomator2] Deleting UiAutomator2 server session [debug] [WD Proxy] Matched '/' to command name 'deleteSession' [warn] [UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: Trying to proxy a session command without session id [debug] [Logcat] Stopping logcat capture [debug] [ADB] Removing forwarded port socket connection: 8200 [debug] [ADB] Running 'D:\software\appium\android-sdk-windows\platform-tools\adb.exe -P 5037 -s 192.168.202.101\:5555 forward --remove tcp\:8200'[debug] [BaseDriver] Event 'newSessionStarted' logged at 1589991776396 (00:22:56 GMT+0800 (中国标准时间)) [debug] [MJSONWP] Encountered internal error running command: Error: pkg: /data/local/tmp/appium_cache/8d4156e508daae39c3f4815552e22e311432ff1f.apk [debug] [MJSONWP] Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES] [debug] [MJSONWP] at ADB.install (C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\apk-utils.js:582:13) [debug] [MJSONWP] at UiAutomator2Server.installServerApk (C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\uiautomator2.js:121:11) [debug] [MJSONWP] at AndroidUiautomator2Driver.initUiAutomator2Server (C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\driver.js:440:7) [debug] [MJSONWP] at AndroidUiautomator2Driver.startUiAutomator2Session (C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\driver.js:338:5) [debug] [MJSONWP] at AndroidUiautomator2Driver.createSession (C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\driver.js:212:7) [debug] [MJSONWP] at AppiumDriver.createSession (C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium\lib\appium.js:358:35) [debug] [MJSONWP] Destroying socket connection [info] [HTTP] <-- POST /wd/hub/session 500 8336 ms - 267 [info] [HTTP]  [info] [HTTP] --> DELETE /wd/hub/session [info] [HTTP] {} [debug] [HTTP] No route found. Setting content type to 'text/plain' [info] [HTTP] <-- DELETE /wd/hub/session 404 18 ms - 57 [info] [HTTP]