Not able to launch activity with espresso driver in appium 1.22.0 / works fine on the uiautomator2
See original GitHub issueError message on the Appium Inspector
Failed to create session. A new session could not be created. Details: Espresso server process has been unexpectedly terminated. Check the Appium server log and the logcat output for more details. Check https://github.com/appium/appium-espresso-driver#troubleshooting regarding advanced session startup troubleshooting
Appium Logs
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session
[HTTP] {"capabilities":{"alwaysMatch":{"platformName":"Android","appium:automationName":"espresso","appium:deviceName":"emulator-5554","appium:platformVersion":"11","appium:app":"/Users/barnie.r/Developer/xerome-appium-poc-e2e/apps/x4e-debug.apk","appium:newCommandTimeout":"600","appium:adbExecTimeout":"120000","appium:ensureWebviewsHavePages":true,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"Android","appium:automationName":"espresso","appium:deviceName":"emulator-5554","appium:platformVersion":"11","appium:app":"/Users/barnie.r/Developer/xerome-appium-poc-e2e/apps/x4e-debug.apk","appium:newCommandTimeout":"600","appium:adbExecTimeout":"120000","appium:ensureWebviewsHavePages":true,"appium:connectHardwareKeyboard":true}}
[W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","appium:automationName":"espresso","appium:deviceName":"emulator-5554","appium:platformVersion":"11","appium:app":"/Users/barnie.r/Developer/xerome-appium-poc-e2e/apps/x4e-debug.apk","appium:newCommandTimeout":"600","appium:adbExecTimeout":"120000","appium:ensureWebviewsHavePages":true,"appium:connectHardwareKeyboard":true},null,{"alwaysMatch":{"platformName":"Android","appium:automationName":"espresso","appium:deviceName":"emulator-5554","appium:platformVersion":"11","appium:app":"/Users/barnie.r/Developer/xerome-appium-poc-e2e/apps/x4e-debug.apk","appium:newCommandTimeout":"600","appium:adbExecTimeout":"120000","appium:ensureWebviewsHavePages":true,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]}]
[BaseDriver] Event 'newSessionRequested' logged at 1634880535049 (16:28:55 GMT+1100 (Australian Eastern Daylight Time))
[BaseDriver] Number capability passed in as string. Functionality may be compromised.
[Appium] Appium v1.22.0 creating new EspressoDriver (v1.45.3) session
[Appium] Applying relaxed security to 'EspressoDriver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
[BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
[BaseDriver] Creating session with W3C capabilities: {
[BaseDriver] "alwaysMatch": {
[BaseDriver] "platformName": "Android",
[BaseDriver] "appium:automationName": "espresso",
[BaseDriver] "appium:deviceName": "emulator-5554",
[BaseDriver] "appium:platformVersion": "11",
[BaseDriver] "appium:app": "/Users/barnie.r/Developer/xerome-appium-poc-e2e/apps/x4e-debug.apk",
[BaseDriver] "appium:newCommandTimeout": "600",
[BaseDriver] "appium:adbExecTimeout": "120000",
[BaseDriver] "appium:ensureWebviewsHavePages": true,
[BaseDriver] "appium:connectHardwareKeyboard": true
[BaseDriver] },
[BaseDriver] "firstMatch": [
[BaseDriver] {}
[BaseDriver] ]
[BaseDriver] }
[BaseDriver] Number capability passed in as string. Functionality may be compromised.
[BaseDriver] Number capability passed in as string. Functionality may be compromised.
[BaseDriver] Capability 'newCommandTimeout' changed from string ('600') to integer (600). This may cause unexpected behavior
[BaseDriver] Capability 'adbExecTimeout' changed from string ('120000') to integer (120000). This may cause unexpected behavior
[BaseDriver] The following capabilities were provided, but are not recognized by Appium:
[BaseDriver] connectHardwareKeyboard
[BaseDriver] Session created with session id: cdf4fff2-9530-413a-a4d9-0278709a091c
[BaseDriver] Using local app '/Users/barnie.r/Developer/xerome-appium-poc-e2e/apps/x4e-debug.apk'
[Espresso] Checking whether app is actually present
[Espresso] EspressoDriver version: 1.45.3
[ADB] Using 'adb' from '/Users/barnie.r/Library/Android/sdk/platform-tools/adb'
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
[AndroidDriver] Retrieving device list
[ADB] Trying to find a connected android device
[ADB] Getting connected devices
[ADB] Connected devices: [{"udid":"emulator-5554","state":"device"}]
[AndroidDriver] Looking for a device with Android '11.0.0'
[ADB] Setting device id to emulator-5554
[ADB] Getting device platform version
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.release'
[ADB] Current device property 'ro.build.version.release': 11
[AndroidDriver] Using device: emulator-5554
[ADB] Using 'adb' from '/Users/barnie.r/Library/Android/sdk/platform-tools/adb'
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
[ADB] Setting device id to emulator-5554
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk'
[ADB] Current device property 'ro.build.version.sdk': 30
[ADB] Getting device platform version
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.release'
[ADB] Current device property 'ro.build.version.release': 11
[ADB] Device API level: 30
[Espresso] Relaxing hidden api policy
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1''
[AndroidDriver] Parsing package and activity from app manifest
[ADB] Package name: 'com.xero.payday.dev'
[ADB] Main activity name: 'com.xero.payday.features.startup.StartupActivity'
[AndroidDriver] Parsed package and activity are: com.xero.payday.dev/com.xero.payday.features.startup.StartupActivity
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 wait-for-device'
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell echo ping'
[AndroidDriver] Pushing settings apk to device...
[ADB] Getting install status for io.appium.settings
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings'
[ADB] 'io.appium.settings' is installed
[ADB] Getting package info for 'io.appium.settings'
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings'
[ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.4.0' >= '3.4.0')
[ADB] There is no need to install/upgrade '/Applications/Appium Server GUI.app/Contents/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 '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'pgrep --help; echo $?''
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)'
[AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
[Logcat] Starting logs capture with command: /Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 logcat -v threadtime
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings get global animator_duration_scale'
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings get global transition_animation_scale'
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings get global window_animation_scale'
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am broadcast -a io.appium.settings.animation -n io.appium.settings/.receivers.AnimationSettingReceiver --es setstatus disable'
[Espresso] Forwarding Espresso Server port 6791 to 8300
[ADB] Forwarding system: 8300 to device: 6791
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward tcp:8300 tcp:6791'
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys window'
[AndroidDriver] Screen already unlocked, doing nothing
[ADB] Checking app cert for /Users/barnie.r/Developer/xerome-appium-poc-e2e/apps/x4e-debug.apk
[ADB] Using the previously cached signature entry for 'x4e-debug.apk'
[ADB] sha256 hash did match for 'x4e-debug.apk'
[ADB] Getting install status for com.xero.payday.dev
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package com.xero.payday.dev'
[ADB] 'com.xero.payday.dev' is installed
[ADB] Getting package info for 'com.xero.payday.dev'
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package com.xero.payday.dev'
[ADB] The version name of the installed 'com.xero.payday.dev' is greater or equal to the application version name ('4.2.4' >= '4.2.4')
[ADB] There is no need to install/upgrade '/Users/barnie.r/Developer/xerome-appium-poc-e2e/apps/x4e-debug.apk'
[AndroidDriver] Performing fast reset on 'com.xero.payday.dev'
[ADB] Getting install status for com.xero.payday.dev
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package com.xero.payday.dev'
[ADB] 'com.xero.payday.dev' is installed
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop com.xero.payday.dev'
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm clear com.xero.payday.dev'
[AndroidDriver] Performed fast reset on the installed 'com.xero.payday.dev' application (stop and clear)
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell "[ -e '/data/local/tmp/espresso.apppackage' ] && echo __PASS__"'
[Espresso] The previous target application package is unknown
[Espresso] Forcing Espresso server rebuild because of changed application package
[Espresso] Deleting the obsolete Espresso server package '/var/folders/r9/77c8s4xn2ds7ml6b68lz65080000gp/T/io.appium.espressoserver.test_1.45.3_com.xero.payday.dev_emulator-5554.apk'
[Espresso] Building espresso server in '/var/folders/r9/77c8s4xn2ds7ml6b68lz65080000gp/T/espresso-server-emulator-5554'
[Espresso] The build folder root could be customized by changing the 'tmpDir' capability
[Espresso] Copying espresso server template from ('/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-espresso-driver/espresso-server' to '/var/folders/r9/77c8s4xn2ds7ml6b68lz65080000gp/T/espresso-server-emulator-5554')
[Espresso] Bulding espresso server
[Espresso] Beginning build with command './gradlew -PappiumTargetPackage=com.xero.payday.dev app:assembleAndroidTest' in directory '/var/folders/r9/77c8s4xn2ds7ml6b68lz65080000gp/T/espresso-server-emulator-5554'
[Espresso] Output from Gradle will not be logged. To change this, use 'showGradleLog' desired capability
[Espresso] Copying built apk from '/var/folders/r9/77c8s4xn2ds7ml6b68lz65080000gp/T/espresso-server-emulator-5554/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk' to '/var/folders/r9/77c8s4xn2ds7ml6b68lz65080000gp/T/io.appium.espressoserver.test_1.45.3_com.xero.payday.dev_emulator-5554.apk'
[ADB] Checking app cert for /var/folders/r9/77c8s4xn2ds7ml6b68lz65080000gp/T/io.appium.espressoserver.test_1.45.3_com.xero.payday.dev_emulator-5554.apk
[ADB] Using 'apksigner.jar' from '/Users/barnie.r/Library/Android/sdk/build-tools/31.0.0/lib/apksigner.jar'
[ADB] Starting apksigner: /Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/barnie.r/Library/Android/sdk/build-tools/31.0.0/lib/apksigner.jar verify --print-certs /var/folders/r9/77c8s4xn2ds7ml6b68lz65080000gp/T/io.appium.espressoserver.test_1.45.3_com.xero.payday.dev_emulator-5554.apk
[ADB] apksigner stdout: Signer #1 certificate DN: C=US, O=Android, CN=Android Debug
[ADB] Signer #1 certificate SHA-256 digest: 9c1e0da896d6e937946074e886e85359e22e93d2b7449ed4b491f8e7e81b24a0
[ADB] Signer #1 certificate SHA-1 digest: dc6cd0ae9c72b61010972e552694f0ce6afe8147
[ADB] Signer #1 certificate MD5 digest: fc891147b1100ae7891f0aafc825d12b
[ADB]
[ADB] '/var/folders/r9/77c8s4xn2ds7ml6b68lz65080000gp/T/io.appium.espressoserver.test_1.45.3_com.xero.payday.dev_emulator-5554.apk' is signed with a non-default certificate
[ADB] Using 'zipalign' from '/Users/barnie.r/Library/Android/sdk/build-tools/31.0.0/zipalign'
[ADB] /var/folders/r9/77c8s4xn2ds7ml6b68lz65080000gp/T/io.appium.espressoserver.test_1.45.3_com.xero.payday.dev_emulator-5554.apk' is already zip-aligned. Doing nothing
[ADB] Signing '/var/folders/r9/77c8s4xn2ds7ml6b68lz65080000gp/T/io.appium.espressoserver.test_1.45.3_com.xero.payday.dev_emulator-5554.apk' with default cert
[ADB] Starting apksigner: /Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/barnie.r/Library/Android/sdk/build-tools/31.0.0/lib/apksigner.jar sign --key '/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/keys/testkey.pk8' --cert '/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/keys/testkey.x509.pem' /var/folders/r9/77c8s4xn2ds7ml6b68lz65080000gp/T/io.appium.espressoserver.test_1.45.3_com.xero.payday.dev_emulator-5554.apk
[ADB] Uninstalling io.appium.espressoserver.test
[ADB] Getting install status for io.appium.espressoserver.test
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.espressoserver.test'
[ADB] 'io.appium.espressoserver.test' is installed
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop io.appium.espressoserver.test'
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 uninstall io.appium.espressoserver.test'
[ADB] 'adb uninstall io.appium.espressoserver.test' command output: Success
[ADB] io.appium.espressoserver.test was successfully uninstalled
[Espresso] Uninstalled the obsolete Espresso server package from the device under test
[ADB] Getting install status for io.appium.espressoserver.test
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.espressoserver.test'
[ADB] 'io.appium.espressoserver.test' is not installed
[ADB] App '/var/folders/r9/77c8s4xn2ds7ml6b68lz65080000gp/T/io.appium.espressoserver.test_1.45.3_com.xero.payday.dev_emulator-5554.apk' is not installed
[Espresso] Installing Espresso Test Server apk from the target device (path: '/var/folders/r9/77c8s4xn2ds7ml6b68lz65080000gp/T/io.appium.espressoserver.test_1.45.3_com.xero.payday.dev_emulator-5554.apk')
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 features'
[ADB] The application at '/var/folders/r9/77c8s4xn2ds7ml6b68lz65080000gp/T/io.appium.espressoserver.test_1.45.3_com.xero.payday.dev_emulator-5554.apk' will not be cached, because the device under test has confirmed the support of streamed installs
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 install /var/folders/r9/77c8s4xn2ds7ml6b68lz65080000gp/T/io.appium.espressoserver.test_1.45.3_com.xero.payday.dev_emulator-5554.apk'
[ADB] The installation of 'io.appium.espressoserver.test_1.45.3_com.xero.payday.dev_emulator-5554.apk' took 251ms
[ADB] Install command stdout: Serving...
[ADB] Performing Incremental Install
[ADB] Success
[ADB] Install command complete in 215 ms
[Espresso] Installed Espresso Test Server apk '/var/folders/r9/77c8s4xn2ds7ml6b68lz65080000gp/T/io.appium.espressoserver.test_1.45.3_com.xero.payday.dev_emulator-5554.apk' (pkg: 'io.appium.espressoserver.test')
[ADB] Adding packages ["io.appium.settings","io.appium.espressoserver.test"] to Doze whitelist
[ADB] Got the following command chunks to execute: [["dumpsys","deviceidle","whitelist","+io.appium.settings",";","dumpsys","deviceidle","whitelist","+io.appium.espressoserver.test",";"]]
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.espressoserver.test ;'
[Espresso] Performing cleanup of automation leftovers
[Espresso] No obsolete sessions have been detected (socket hang up)
[Espresso] Starting Espresso Server v1.45.3 with cmd: adb shell am instrument -w -e debug false -e disableAnalytics true io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner
[ADB] Creating ADB subprocess with args: ["-P",5037,"-s","emulator-5554","shell","am","instrument","-w","-e","debug",false,"-e","disableAnalytics",true,"io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner"]
[Espresso] Waiting up to 45000ms for Espresso server to be online
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://localhost:8300/status] with no body
[WD Proxy] socket hang up
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://localhost:8300/status] with no body
[WD Proxy] socket hang up
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://localhost:8300/status] with no body
[WD Proxy] socket hang up
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://localhost:8300/status] with no body
[WD Proxy] socket hang up
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://localhost:8300/status] with no body
[WD Proxy] socket hang up
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://localhost:8300/status] with no body
[WD Proxy] socket hang up
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://localhost:8300/status] with no body
[WD Proxy] socket hang up
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://localhost:8300/status] with no body
[WD Proxy] socket hang up
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://localhost:8300/status] with no body
[WD Proxy] socket hang up
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://localhost:8300/status] with no body
[WD Proxy] socket hang up
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://localhost:8300/status] with no body
[WD Proxy] socket hang up
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://localhost:8300/status] with no body
[WD Proxy] socket hang up
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://localhost:8300/status] with no body
[WD Proxy] socket hang up
[Espresso] [Instrumentation] INSTRUMENTATION_RESULT: shortMsg=Process crashed.
[Espresso] INSTRUMENTATION_CODE: 0
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://localhost:8300/status] with no body
[WD Proxy] socket hang up
[Espresso] Instrumentation process exited with code 0 from signal null
[Espresso] Espresso server process has been unexpectedly terminated. Check the Appium server log and the logcat output for more details
[Espresso] Deleting espresso session
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am broadcast -a io.appium.settings.animation -n io.appium.settings/.receivers.AnimationSettingReceiver --es setstatus enable'
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop com.xero.payday.dev'
[Logcat] Stopping logcat capture
[Espresso] Restoring hidden api policy to the device default configuration
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy''
[ADB] Removing forwarded port socket connection: 8300
[ADB] Running '/Users/barnie.r/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp:8300'
[BaseDriver] Event 'newSessionStarted' logged at 1634880548629 (16:29:08 GMT+1100 (Australian Eastern Daylight Time))
[W3C] Encountered internal error running command: A new session could not be created. Details: Espresso server process has been unexpectedly terminated. Check the Appium server log and the logcat output for more details. Check https://github.com/appium/appium-espresso-driver#troubleshooting regarding advanced session startup troubleshooting.
[W3C] Error: Espresso server process has been unexpectedly terminated. Check the Appium server log and the logcat output for more details. Check https://github.com/appium/appium-espresso-driver#troubleshooting regarding advanced session startup troubleshooting.
[W3C] at Object.errorAndThrow (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-support/lib/logging.js:94:35)
[W3C] at condFn (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-espresso-driver/lib/espresso-runner.js:283:18)
[W3C] at spin (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:138:26)
[W3C] at spin (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:148:20)
[W3C] at spin (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:148:14)
[W3C] at spin (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:148:14)
[W3C] at spin (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:148:14)
[W3C] at spin (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:148:14)
[W3C] at spin (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:148:14)
[W3C] at spin (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:148:14)
[W3C] at spin (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:148:14)
[W3C] at spin (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:148:14)
[W3C] at spin (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:148:14)
[W3C] at spin (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:148:14)
[W3C] at spin (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:148:14)
[W3C] at spin (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:148:14)
[W3C] at spin (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:148:14)
[W3C] at waitForCondition (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:155:10)
[W3C] at EspressoRunner.startSession (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-espresso-driver/lib/espresso-runner.js:277:7)
[W3C] at EspressoDriver.startEspressoSession (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-espresso-driver/lib/driver.js:318:5)
[W3C] at EspressoDriver.createSession (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-espresso-driver/lib/driver.js:188:7)
[W3C] at AppiumDriver.createSession (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/lib/appium.js:387:35)
[HTTP] <-- POST /wd/hub/session 500 13585 ms - 3849
[HTTP]
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Not able to launch activity with espresso driver version 1.11.0
Same code works fine for appium-espresso-driver version 1.10.1 Below is the error log : Error in onReload hook: "Error: A new session could ......
Read more >Troubleshooting
If this is the first time you've run Appium, make sure to authorize the use of Instruments. See the UIAutomation Driver doc. If...
Read more >Error when trying to use espresso instead of uiautomator
Hi, When I try using appium with espresso I get an error and app does not even start. If I replace the automation...
Read more >Desired Capabilities
This set of Desired Capabilities expresses the desire for Appium to begin an automation session on an iPhone 7 simulator with iOS 11,...
Read more >Not able to launch app when using Espresso with Appium ...
Hi there, I need to start my Android app with "appium:automationName": "Espresso" driver for interacting with compose elements.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Interesting… Unable to find instrumentation target package: com.xero.payday.dev means the instrumentation process was not able to detect the package. The typical case is the device does not have the package. i don’t have any good ideas except for it…
Appium builds the espresso server as
./gradlew -PappiumTargetPackage=com.xero.payday.dev app:assembleAndroidTest
and launches it viaadb shell am instrument -w -e debug false -e disableAnalytics true io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner
. Then, the application under test also launches (by Espresso framework outside Appium). Some application requires additional dependencies in the espresso server, then you should coordinate Espresso Build Config as I posted before. (You can observe such launching errors via logcat.)Issue got resolved after removing this from my caps
noReset: false