Open ashirbad1986 opened 2 years ago
Please attach the full appium log as GitHub GIST.
The logcat also helps us.
Hi @KazuCocoa,
Please find below the raw log:
[info] [35m[Appium][39m Welcome to Appium v1.22.0
[info] [35m[Appium][39m Non-default server args:
[info] [35m[Appium][39m relaxedSecurityEnabled: true
[info] [35m[Appium][39m allowInsecure: {
[info] [35m[Appium][39m }
[info] [35m[Appium][39m denyInsecure: {
[info] [35m[Appium][39m }
[info] [35m[Appium][39m Appium REST http interface listener started on 0.0.0.0:4723[info] [35m[HTTP][39m [37m-->[39m [37mGET[39m [37m/wd/hub/sessions[39m
[info] [35m[HTTP][39m [90m{}[39m
[debug] [35m[GENERIC][39m Calling AppiumDriver.getSessions() with args: []
[debug] [35m[GENERIC][39m Responding to client with driver.getSessions() result: []
[info] [35m[HTTP][39m [37m<-- GET /wd/hub/sessions [39m[36m304[39m [90m4 ms - -[39m
[info] [35m[HTTP][39m [90m[39m[info] [35m[HTTP][39m [37m-->[39m [37mGET[39m [37m/wd/hub/sessions[39m
[info] [35m[HTTP][39m [90m{}[39m
[debug] [35m[GENERIC][39m Calling AppiumDriver.getSessions() with args: []
[debug] [35m[GENERIC][39m Responding to client with driver.getSessions() result: []
[info] [35m[HTTP][39m [37m<-- GET /wd/hub/sessions [39m[36m304[39m [90m1 ms - -[39m
[info] [35m[HTTP][39m [90m[39m[info] [35m[HTTP][39m [37m-->[39m [37mGET[39m [37m/wd/hub/sessions[39m
[info] [35m[HTTP][39m [90m{}[39m
[debug] [35m[GENERIC][39m Calling AppiumDriver.getSessions() with args: []
[debug] [35m[GENERIC][39m Responding to client with driver.getSessions() result: []
[info] [35m[HTTP][39m [37m<-- GET /wd/hub/sessions [39m[36m304[39m [90m1 ms - -[39m
[info] [35m[HTTP][39m [90m[39m[info] [35m[HTTP][39m [37m-->[39m [37mGET[39m [37m/wd/hub/sessions[39m
[info] [35m[HTTP][39m [90m{}[39m
[debug] [35m[GENERIC][39m Calling AppiumDriver.getSessions() with args: []
[debug] [35m[GENERIC][39m Responding to client with driver.getSessions() result: []
[info] [35m[HTTP][39m [37m<-- GET /wd/hub/sessions [39m[36m304[39m [90m1 ms - -[39m
[info] [35m[HTTP][39m [90m[39m[info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session[39m
[info] [35m[HTTP][39m [90m{"capabilities":{"alwaysMatch":{"platformName":"Android","appium:deviceNme":"OnePlus 8 Pro - Bankai","appium:automationName":"Espresso","appium:udid":"emulator-5554","appium:app":"C:\MobileAutomation\21st_Mar_V1.apk","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"Android","appium:deviceNme":"OnePlus 8 Pro - Bankai","appium:automationName":"Espresso","appium:udid":"emulator-5554","appium:app":"C:\MobileAutomation\21st_Mar_V1.apk","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true}}[39m
[debug] [35m[W3C][39m Calling AppiumDriver.createSession() with args: [{"platformName":"Android","appium:deviceNme":"OnePlus 8 Pro - Bankai","appium:automationName":"Espresso","appium:udid":"emulator-5554","appium:app":"C:\MobileAutomation\21st_Mar_V1.apk","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},null,{"alwaysMatch":{"platformName":"Android","appium:deviceNme":"OnePlus 8 Pro - Bankai","appium:automationName":"Espresso","appium:udid":"emulator-5554","appium:app":"C:\MobileAutomation\21st_Mar_V1.apk","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]}]
[debug] [35m[BaseDriver][39m Event 'newSessionRequested' logged at 1647843239110 (11:43:59 GMT+0530 (India Standard Time))
[info] [35m[Appium][39m Appium v1.22.0 creating new EspressoDriver (v1.45.3) session
[info] [35m[Appium][39m Applying relaxed security to 'EspressoDriver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
[debug] [35m[BaseDriver][39m W3C capabilities and MJSONWP desired capabilities were provided
[debug] [35m[BaseDriver][39m Creating session with W3C capabilities: {
[debug] [35m[BaseDriver][39m "alwaysMatch": {
[debug] [35m[BaseDriver][39m "platformName": "Android",
[debug] [35m[BaseDriver][39m "appium:deviceNme": "OnePlus 8 Pro - Bankai",
[debug] [35m[BaseDriver][39m "appium:automationName": "Espresso",
[debug] [35m[BaseDriver][39m "appium:udid": "emulator-5554",
[debug] [35m[BaseDriver][39m "appium:app": "C:\MobileAutomation\21st_Mar_V1.apk",
[debug] [35m[BaseDriver][39m "appium:ensureWebviewsHavePages": true,
[debug] [35m[BaseDriver][39m "appium:nativeWebScreenshot": true,
[debug] [35m[BaseDriver][39m "appium:newCommandTimeout": 3600,
[debug] [35m[BaseDriver][39m "appium:connectHardwareKeyboard": true
[debug] [35m[BaseDriver][39m },
[debug] [35m[BaseDriver][39m "firstMatch": [
[debug] [35m[BaseDriver][39m {}
[debug] [35m[BaseDriver][39m ]
[debug] [35m[BaseDriver][39m }
[warn] [35m[BaseDriver][39m The following capabilities were provided, but are not recognized by Appium:
[warn] [35m[BaseDriver][39m deviceNme
[warn] [35m[BaseDriver][39m connectHardwareKeyboard
[info] [35m[BaseDriver][39m Session created with session id: 7d0d219f-1af5-45aa-b456-26c49c8c8a59[info] [35m[Espresso][39m EspressoDriver version: 1.45.3
[info] [35m[ADB][39m Found 4 'build-tools' folders under 'C:\Users\prust\AppData\Local\Android\Sdk' (newest first):
[info] [35m[ADB][39m C:/Users/prust/AppData/Local/Android/Sdk/build-tools/33.0.0-rc1
[info] [35m[ADB][39m C:/Users/prust/AppData/Local/Android/Sdk/build-tools/32.1.0-rc1
[info] [35m[ADB][39m C:/Users/prust/AppData/Local/Android/Sdk/build-tools/32.0.0
[info] [35m[ADB][39m C:/Users/prust/AppData/Local/Android/Sdk/build-tools/29.0.2
[info] [35m[ADB][39m Using 'adb.exe' from 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe'
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 start-server'[info] [35m[AndroidDriver][39m Retrieving device list
[debug] [35m[ADB][39m Trying to find a connected android device
[debug] [35m[ADB][39m Getting connected devices[debug] [35m[ADB][39m Connected devices: [{"udid":"emulator-5554","state":"device"}]
[info] [35m[AndroidDriver][39m Using device: emulator-5554
[info] [35m[ADB][39m Using 'adb.exe' from 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe'
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 start-server'
[debug] [35m[ADB][39m Setting device id to emulator-5554
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk'
[debug] [35m[ADB][39m Current device property 'ro.build.version.sdk': 29
[info] [35m[ADB][39m Getting device platform version
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.release'
[debug] [35m[ADB][39m Current device property 'ro.build.version.release': 10
[debug] [35m[ADB][39m Device API level: 29
[warn] [35m[Espresso][39m Relaxing hidden api policy
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -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''[debug] [35m[AndroidDriver][39m Parsing package and activity from app manifest
[info] [35m[ADB][39m Package name: 'com.datafinch'
[info] [35m[ADB][39m Main activity name: 'com.datafinch.MainActivity'
[debug] [35m[AndroidDriver][39m Parsed package and activity are: com.datafinch/com.datafinch.MainActivity
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 wait-for-device'
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell echo ping'[debug] [35m[AndroidDriver][39m Pushing settings apk to device...
[debug] [35m[ADB][39m Getting install status for io.appium.settings
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings'
[debug] [35m[ADB][39m 'io.appium.settings' is not installed
[debug] [35m[ADB][39m App 'C:\Users\prust\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk' is not installed
[debug] [35m[ADB][39m Installing 'C:\Users\prust\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk'
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 help'
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 features'[info] [35m[ADB][39m The application at 'C:\Users\prust\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\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
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 install -g 'C:\Users\prust\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk''
[info] [35m[ADB][39m The installation of 'settings_apk-debug.apk' took 226ms
[debug] [35m[ADB][39m Install command stdout: Performing Streamed Install
[debug] [35m[ADB][39m Success
[debug] [35m[ADB][39m Getting IDs of all 'io.appium.settings' processes
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell 'pgrep --help; echo $?''[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pgrep -f ([[:blank:]]|\^)io.appium.settings([[:blank:]]|\$)'
[debug] [35m[ADB][39m Getting IDs of all 'io.appium.settings' processes
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pgrep -f ([[:blank:]]|\^)io.appium.settings([[:blank:]]|\$)'[debug] [35m[ADB][39m Starting Appium Settings app
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am start -n io.appium.settings/.Settings -a android.intent.action.MAIN -c android.intent.category.LAUNCHER'
[debug] [35m[ADB][39m Getting IDs of all 'io.appium.settings' processes
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pgrep -f ([[:blank:]]|\^)io.appium.settings([[:blank:]]|\$)'[debug] [35m[ADB][39m Getting IDs of all 'io.appium.settings' processes
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pgrep -f ([[:blank:]]|\^)io.appium.settings([[:blank:]]|\$)'[debug] [35m[Logcat][39m Starting logs capture with command: C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 logcat -v threadtime
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell settings get global animator_duration_scale'
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell settings get global transition_animation_scale'[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell settings get global window_animation_scale'[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am broadcast -a io.appium.settings.animation -n io.appium.settings/.receivers.AnimationSettingReceiver --es setstatus disable'
[debug] [35m[Espresso][39m Forwarding Espresso Server port 6791 to 8300
[debug] [35m[ADB][39m Forwarding system: 8300 to device: 6791
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 forward tcp:8300 tcp:6791'
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys window'[info] [35m[AndroidDriver][39m Screen already unlocked, doing nothing
[debug] [35m[ADB][39m Checking app cert for C:\MobileAutomation\21st_Mar_V1.apk[info] [35m[ADB][39m Using 'apksigner.jar' from 'C:\Users\prust\AppData\Local\Android\Sdk\build-tools\33.0.0-rc1\lib\apksigner.jar'
[debug] [35m[ADB][39m Starting apksigner: 'C:\Program Files\Java\jdk-11.0.11\bin\java.exe' -Xmx1024M -Xss1m -jar C:\Users\prust\AppData\Local\Android\Sdk\build-tools\33.0.0-rc1\lib\apksigner.jar verify --print-certs C:\MobileAutomation\21st_Mar_V1.apk[debug] [35m[ADB][39m apksigner stdout: Signer #1 certificate DN: CN=Android Debug, OU=Android, O=Unknown, L=Unknown, ST=Unknown, C=US
[debug] [35m[ADB][39m Signer #1 certificate SHA-256 digest: fac61745dc0903786fb9ede62a962b399f7348f0bb6f899b8332667591033b9c
[debug] [35m[ADB][39m Signer #1 certificate SHA-1 digest: 5e8f16062ea3cd2c4a0d547876baa6f38cabf625
[debug] [35m[ADB][39m Signer #1 certificate MD5 digest: 20f46148b72d8e5e5ca23d37a4f41490
[debug] [35m[ADB][39m
[info] [35m[ADB][39m 'C:\MobileAutomation\21st_Mar_V1.apk' is signed with a non-default certificate[debug] [35m[ADB][39m C:\MobileAutomation\21st_Mar_V1.apk' is already zip-aligned. Doing nothing
[debug] [35m[ADB][39m Signing 'C:\MobileAutomation\21st_Mar_V1.apk' with default cert
[debug] [35m[ADB][39m Starting apksigner: 'C:\Program Files\Java\jdk-11.0.11\bin\java.exe' -Xmx1024M -Xss1m -jar C:\Users\prust\AppData\Local\Android\Sdk\build-tools\33.0.0-rc1\lib\apksigner.jar sign --key 'C:\Users\prust\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8' --cert 'C:\Users\prust\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem' C:\MobileAutomation\21st_Mar_V1.apk[debug] [35m[ADB][39m Getting install status for com.datafinch
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package com.datafinch'
[debug] [35m[ADB][39m 'com.datafinch' is not installed
[debug] [35m[ADB][39m App 'C:\MobileAutomation\21st_Mar_V1.apk' is not installed
[debug] [35m[ADB][39m Installing 'C:\MobileAutomation\21st_Mar_V1.apk'
[info] [35m[ADB][39m The application at 'C:\MobileAutomation\21st_Mar_V1.apk' will not be cached, because the device under test has confirmed the support of streamed installs
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 install C:\MobileAutomation\21st_Mar_V1.apk'[info] [35m[ADB][39m The installation of '21st_Mar_V1.apk' took 860ms
[debug] [35m[ADB][39m Install command stdout: Serving...
[debug] [35m[ADB][39m Performing Incremental Install
[debug] [35m[ADB][39m Unknown command: install-incremental
[debug] [35m[ADB][39m Performing Streamed Install
[debug] [35m[ADB][39m Success
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell "[ -e '/data/local/tmp/espresso.apppackage' ] && echo PASS"'[debug] [35m[Espresso][39m The previous target application package is unknown
[info] [35m[Espresso][39m Forcing Espresso server rebuild because of changed application package
[info] [35m[Espresso][39m Building espresso server in 'C:\Users\prust\AppData\Local\Temp\espresso-server-emulator-5554'
[debug] [35m[Espresso][39m The build folder root could be customized by changing the 'tmpDir' capability
[debug] [35m[Espresso][39m Copying espresso server template from ('C:\Users\prust\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-espresso-driver\espresso-server' to 'C:\Users\prust\AppData\Local\Temp\espresso-server-emulator-5554')[debug] [35m[Espresso][39m Bulding espresso server
[debug] [35m[Espresso][39m Beginning build with command 'gradlew.bat -PappiumTargetPackage=com.datafinch app:assembleAndroidTest' in directory 'C:\Users\prust\AppData\Local\Temp\espresso-server-emulator-5554'
[debug] [35m[Espresso][39m Output from Gradle will not be logged. To change this, use 'showGradleLog' desired capability[debug] [35m[Espresso][39m Copying built apk from 'C:\Users\prust\AppData\Local\Temp\espresso-server-emulator-5554\app\build\outputs\apk\androidTest\debug\app-debug-androidTest.apk' to 'C:\Users\prust\AppData\Local\Temp\io.appium.espressoserver.test_1.45.3_com.datafinch_emulator-5554.apk'
[debug] [35m[ADB][39m Checking app cert for C:\Users\prust\AppData\Local\Temp\io.appium.espressoserver.test_1.45.3_com.datafinch_emulator-5554.apk
[debug] [35m[ADB][39m Starting apksigner: 'C:\Program Files\Java\jdk-11.0.11\bin\java.exe' -Xmx1024M -Xss1m -jar C:\Users\prust\AppData\Local\Android\Sdk\build-tools\33.0.0-rc1\lib\apksigner.jar verify --print-certs C:\Users\prust\AppData\Local\Temp\io.appium.espressoserver.test_1.45.3_com.datafinch_emulator-5554.apk[debug] [35m[ADB][39m apksigner stdout: Signer #1 certificate DN: C=US, O=Android, CN=Android Debug
[debug] [35m[ADB][39m Signer #1 certificate SHA-256 digest: c1383b2734e1a9012ad206397811e317d910f5b52f8dceec19d2ae6f33bc24ee
[debug] [35m[ADB][39m Signer #1 certificate SHA-1 digest: 11e6af51b07ea7ca32891dccbae004cc59481201
[debug] [35m[ADB][39m Signer #1 certificate MD5 digest: 621fa1143fd80b9b269717bf150e1e2b
[debug] [35m[ADB][39m
[info] [35m[ADB][39m 'C:\Users\prust\AppData\Local\Temp\io.appium.espressoserver.test_1.45.3_com.datafinch_emulator-5554.apk' is signed with a non-default certificate
[debug] [35m[ADB][39m C:\Users\prust\AppData\Local\Temp\io.appium.espressoserver.test_1.45.3_com.datafinch_emulator-5554.apk' is already zip-aligned. Doing nothing
[debug] [35m[ADB][39m Signing 'C:\Users\prust\AppData\Local\Temp\io.appium.espressoserver.test_1.45.3_com.datafinch_emulator-5554.apk' with default cert
[debug] [35m[ADB][39m Starting apksigner: 'C:\Program Files\Java\jdk-11.0.11\bin\java.exe' -Xmx1024M -Xss1m -jar C:\Users\prust\AppData\Local\Android\Sdk\build-tools\33.0.0-rc1\lib\apksigner.jar sign --key 'C:\Users\prust\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8' --cert 'C:\Users\prust\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem' C:\Users\prust\AppData\Local\Temp\io.appium.espressoserver.test_1.45.3_com.datafinch_emulator-5554.apk[debug] [35m[ADB][39m Uninstalling io.appium.espressoserver.test
[debug] [35m[ADB][39m Getting install status for io.appium.espressoserver.test
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package io.appium.espressoserver.test'[debug] [35m[ADB][39m 'io.appium.espressoserver.test' is not installed
[info] [35m[ADB][39m io.appium.espressoserver.test was not uninstalled, because it was not present on the device
[debug] [35m[ADB][39m Getting install status for io.appium.espressoserver.test
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package io.appium.espressoserver.test'
[debug] [35m[ADB][39m 'io.appium.espressoserver.test' is not installed
[debug] [35m[ADB][39m App 'C:\Users\prust\AppData\Local\Temp\io.appium.espressoserver.test_1.45.3_com.datafinch_emulator-5554.apk' is not installed
[info] [35m[Espresso][39m Installing Espresso Test Server apk from the target device (path: 'C:\Users\prust\AppData\Local\Temp\io.appium.espressoserver.test_1.45.3_com.datafinch_emulator-5554.apk')
[info] [35m[ADB][39m The application at 'C:\Users\prust\AppData\Local\Temp\io.appium.espressoserver.test_1.45.3_com.datafinch_emulator-5554.apk' will not be cached, because the device under test has confirmed the support of streamed installs
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 install C:\Users\prust\AppData\Local\Temp\io.appium.espressoserver.test_1.45.3_com.datafinch_emulator-5554.apk'[info] [35m[ADB][39m The installation of 'io.appium.espressoserver.test_1.45.3_com.datafinch_emulator-5554.apk' took 182ms
[debug] [35m[ADB][39m Install command stdout: Serving...
[debug] [35m[ADB][39m Performing Incremental Install
[debug] [35m[ADB][39m Unknown command: install-incremental
[debug] [35m[ADB][39m Performing Streamed Install
[debug] [35m[ADB][39m Success
[info] [35m[Espresso][39m Installed Espresso Test Server apk 'C:\Users\prust\AppData\Local\Temp\io.appium.espressoserver.test_1.45.3_com.datafinch_emulator-5554.apk' (pkg: 'io.appium.espressoserver.test')
[info] [35m[ADB][39m Adding packages ["io.appium.settings","io.appium.espressoserver.test"] to Doze whitelist
[debug] [35m[ADB][39m Got the following command chunks to execute: [["dumpsys","deviceidle","whitelist","+io.appium.settings",";","dumpsys","deviceidle","whitelist","+io.appium.espressoserver.test",";"]]
[debug] [35m[ADB][39m Running 'C:\Users\prust\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.espressoserver.test ;'
[debug] [35m[Espresso][39m Performing cleanup of automation leftovers
[debug] [35m[Espresso][39m No obsolete sessions have been detected (socket hang up)
[info] [35m[Espresso][39m 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
[debug] [35m[ADB][39m 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"]
[info] [35m[Espresso][39m Waiting up to 45000ms for Espresso server to be online
[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus'
[debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://localhost:8300/status] with no body
[info] [35m[WD Proxy][39m socket hang up[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus'
[debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://localhost:8300/status] with no body
[info] [35m[WD Proxy][39m socket hang up[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus'
[debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://localhost:8300/status] with no body[info] [35m[WD Proxy][39m socket hang up[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus'
[debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://localhost:8300/status] with no body
[info] [35m[WD Proxy][39m socket hang up[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus'
[debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://localhost:8300/status] with no body
[info] [35m[WD Proxy][39m socket hang up
[debug] [35m[Espresso][39m [Instrumentation] io.appium.espressoserver.EspressoServerRunnerTest:[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus'
[debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://localhost:8300/status] with no body
[debug] [35m[WD Proxy][39m Got response with status 200: {"id":"7f6c2b7d-7711-43b5-8daa-f5a49df80c3a","sessionId":null,"value":null}
[info] [35m[Espresso][39m Espresso server is online. The initialization process took 2663ms
[info] [35m[Espresso][39m Starting the session
[debug] [35m[WD Proxy][39m Matched '/session' to command name 'createSession'
[debug] [35m[WD Proxy][39m Proxying [POST /session] to [POST http://localhost:8300/session] with body: {"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","deviceNme":"OnePlus 8 Pro - Bankai","automationName":"Espresso","udid":"emulator-5554","app":"C:\MobileAutomation\21st_Mar_V1.apk","ensureWebviewsHavePages":true,"nativeWebScreenshot":true,"newCommandTimeout":3600,"connectHardwareKeyboard":true},"platformName":"Android","deviceNme":"OnePlus 8 Pro - Bankai","automationName":"Espresso","udid":"emulator-5554","app":"C:\MobileAutomation\21st_Mar_V1.apk","ensureWebviewsHavePages":true,"nativeWebScreenshot":true,"newCommandTimeout":3600,"connectHardwareKeyboard":true,"deviceName":"emulator-5554","deviceUDID":"emulator-5554","appPackage":"com.datafinch","appWaitPackage":"com.datafinch","appActivity":"com.datafinch.MainActivity","appWaitActivity":"com.datafinch.MainActivity"}],"alwaysMatch":{}}}
[debug] [35m[Espresso][39m [Instrumentation] Process crashed while executing startEspressoServer(io.appium.espressoserver.EspressoServerRunnerTest):
[debug] [35m[Espresso][39m java.lang.NoSuchMethodError: No static method lifecycleEventObserver(Ljava/lang/Object;)Landroidx/lifecycle/LifecycleEventObserver; in class Landroidx/lifecycle/Lifecycling; or its super classes (declaration of 'androidx.lifecycle.Lifecycling' appears in /data/app/io.appium.espressoserver.test-rqBo-nEteUMe3gA2ArnJiQ==/base.apk)
[debug] [35m[Espresso][39m at androidx.lifecycle.LifecycleRegistry$ObserverWithState.
Probably you need the below dependency
[debug] [35m[Espresso][39m [Instrumentation] Process crashed while executing startEspressoServer(io.appium.espressoserver.EspressoServerRunnerTest):
[debug] [35m[Espresso][39m java.lang.NoSuchMethodError: No static method lifecycleEventObserver(Ljava/lang/Object;)Landroidx/lifecycle/LifecycleEventObserver; in class Landroidx/lifecycle/Lifecycling; or its super classes (declaration of 'androidx.lifecycle.Lifecycling' appears in /data/app/io.appium.espressoserver.test-rqBo-nEteUMe3gA2ArnJiQ==/base.apk)
https://github.com/appium/appium-espresso-driver/issues/639 might help.
I ran into the same issue and resolved it using the desired capability espressoBuildConfig
"appium:espressoBuildConfig": "{ \"additionalAndroidTestDependencies\": \"androidx.lifecycle:lifecycle-common:2.2.0\"}"
I ran into the same issue and resolved it using the desired capability
espressoBuildConfig
"appium:espressoBuildConfig": "{ "additionalAndroidTestDependencies": "androidx.lifecycle:lifecycle-common:2.2.0"}"
Thanks Kim, I will try and update here
Trying to lunch the aap in Appium Inspector with espresso. Caps are:
{ "platformName": "Android", "appium:deviceNme": "Nexus_10_API_29", "appium:automationName": "Espresso", "appium:udid": "emulator-5554", "appium:app": "C:\MobileAutomation\12th_MAR_V1.apk" }