[Appium] Welcome to Appium v2.19.0 [Appium] Non-default server args: [Appium] { loglevel: 'info' } [Appium] Attempting to load driver uiautomator2... [Appium] Appium REST http interface listener started on http://0.0.0.0:4723 [Appium] You can provide the following URLs in your client code to connect to this server: http://127.0.0.1:4723/ (only accessible from the same host) http://192.168.64.23:4723/ [Appium] Available drivers: [Appium] - uiautomator2@4.2.5 (automationName 'UiAutomator2') [Appium] No plugins have been installed. Use the "appium plugin" command to install the one(s) you want to use. [HTTP] --> GET /status {} [HTTP] <-- GET /status 200 5 ms - 111 [HTTP] --> POST /session {"capabilities":{"firstMatch":[{}],"alwaysMatch":{"appium:automationName":"uiautomator2","platformName":"Android","appium:deviceName":"emulator-5554","appium:appPackage":"com.android.settings","appium:appActivity":".Settings","appium:language":"en","appium:locale":"US","appium:uiautomator2ServerInstallTimeout":120000,"appium:adbExecTimeout":120000,"appium:newCommandTimeout":300}}} [Appium] Attempting to find matching driver for automationName 'uiautomator2' and platformName 'Android' [Appium] The 'uiautomator2' driver was installed and matched caps. [Appium] Will require it at /Users/runner/.appium/node_modules/appium-uiautomator2-driver [AppiumDriver@be3c] Appium v2.19.0 creating new AndroidUiautomator2Driver (v4.2.5) session [AppiumDriver@be3c] Checking BaseDriver versions for Appium and AndroidUiautomator2Driver [AppiumDriver@be3c] Appium's BaseDriver version is 9.18.0 [AppiumDriver@be3c] AndroidUiautomator2Driver's BaseDriver version is 9.18.0 [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] Session created with session id: 3fd54bd2-82fb-4f77-b1e0-993f3b2cf951 [3fd54bd2][ADB] Found 3 'build-tools' folders under '/Users/runner/Library/Android/sdk' (newest first): [3fd54bd2][ADB] /Users/runner/Library/Android/sdk/build-tools/36.0.0 [3fd54bd2][ADB] /Users/runner/Library/Android/sdk/build-tools/35.0.1 [3fd54bd2][ADB] /Users/runner/Library/Android/sdk/build-tools/35.0.0 [3fd54bd2][ADB] Using 'adb' from '/Users/runner/Library/Android/sdk/platform-tools/adb' [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] Retrieving device list [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] Using device: emulator-5554 [3fd54bd2][ADB] Using 'adb' from '/Users/runner/Library/Android/sdk/platform-tools/adb' [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] Starting 'com.android.settings' directly on the device [3fd54bd2][ADB] Getting device platform version [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] Relaxing hidden api policy [3fd54bd2][ADB] The application at '/Users/runner/.appium/node_modules/appium-uiautomator2-driver/node_modules/io.appium.settings/apks/settings_apk-debug.apk' will not be cached, because the device under test has confirmed the support of streamed installs [3fd54bd2][ADB] The installation of 'settings_apk-debug.apk' took 10621ms [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] Server packages are going to be (re)installed [3fd54bd2][ADB] The application at '/Users/runner/.appium/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v7.6.2.apk' will not be cached, because the device under test has confirmed the support of streamed installs [3fd54bd2][ADB] The application at '/Users/runner/.appium/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' will not be cached, because the device under test has confirmed the support of streamed installs [3fd54bd2][ADB] The installation of 'appium-uiautomator2-server-debug-androidTest.apk' took 5573ms [3fd54bd2][ADB] The installation of 'appium-uiautomator2-server-v7.6.2.apk' took 9668ms [3fd54bd2][ADB] Adding packages ["io.appium.settings","io.appium.uiautomator2.server","io.appium.uiautomator2.server.test"] to Doze whitelist [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] Starting UIAutomator2 server 7.6.2 [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] Using UIAutomator2 server from '/Users/runner/.appium/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v7.6.2.apk' and test from '/Users/runner/.appium/node_modules/appium-uiautomator2-driver/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] Waiting up to 30000ms for UiAutomator2 to be online... [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] socket hang up [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] The instrumentation process cannot be initialized within 30000ms timeout. Make sure the application under test does not crash and investigate the logcat output. You could also try to increase the value of 'uiautomator2ServerLaunchTimeout' capability [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] Did not get the confirmation of UiAutomator2 server session deletion. Original error: An unknown server-side error occurred while processing the command. Original error: Session ID is not set, but saw a URL that requires it (/) [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] The UIA2 server did has not been terminated within 5000ms timeout. Continuing anyway [3fd54bd2][38;5;-9m[AndroidUiautomator2Driver@1a0d] Restoring hidden api policy to the device default configuration [3fd54bd2][HTTP] <-- POST /session 500 100688 ms - 1068