appium-espresso-driver
appium-espresso-driver copied to clipboard
You need to use a Theme.AppCompat theme (or descendant) with this activity.
Appium v1.10.0 MacOs version : 10.14.2 (18C54) Node.js 11.6.0 Mobile platform/version under test: Android 7 Genymotion X86/ real device Appium java client : 7.0.0 android app with dagger/rx
[Espresso] [Instrumentation][STDOUT] java.lang.RuntimeException: Unable to start activity ComponentInfo{com.package.ecrew.dev/com.package.aea.auth.ui.splash.SplashScreenActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
please see full log [info] [35m[Appium][39m Welcome to Appium v1.10.0 [info] [35m[Appium][39m Appium REST http interface listener started on 0.0.0.0:4723[info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session[39m [info] [35m[HTTP][39m [90m{"desiredCapabilities":{"app":"/Users/viktor/builds/app-dev-x86-debug.apk","appPackage":"com.package.ecrew.dev","clearSystemFiles":true,"keystorePassword":"123456","noReset":"false","keyAlias":"fake","forceEspressoRebuild":true,"disableAndroidWatchers":true,"deviceName":"192.168.57.101:5555","fullReset":"true","keystorePath":"/Users/viktor/fake_signatures/fake.keystore","appActivity":"com.package.aea.auth.ui.splash.SplashScreenActivity","keyPassword":"123456","newCommandTimeout":15000,"platformVersion":"7","automationName":"Espresso","platformName":"Android","autoAcceptAlerts":false,"useKeystore":true},"capabilities":{"firstMatch":[{"appium:app":"/Users/viktor/builds/app-dev-x86-debug.apk","appium:appActivity":"com.package.aea.auth.ui.splash.SplashScreenActivity","appium:appPackage":"com.package.ecrew.dev","appium:autoAcceptAlerts":false,"appium:automationName":"Espresso","appium:clearSystemFiles":true,"appium:deviceName":"192.168.57.101:5555","appium:disableAndroidWatchers":true,"[39m [debug] [35m[W3C][39m Calling AppiumDriver.createSession() with args: [{"app":"/Users/viktor/builds/app-dev-x86-debug.apk","appPackage":"com.package.ecrew.dev","clearSystemFiles":true,"keystorePassword":"123456","noReset":"false","keyAlias":"fake","forceEspressoRebuild":true,"disableAndroidWatchers":true,"deviceName":"192.168.57.101:5555","fullReset":"true","keystorePath":"/Users/viktor/fake_signatures/fake.keystore","appActivity":"com.package.aea.auth.ui.splash.SplashScreenActivity","keyPassword":"123456","newCommandTimeout":15000,"platformVersion":"7","automationName":"Espresso","platformName":"Android","autoAcceptAlerts":false,"useKeystore":true},null,{"firstMatch":[{"appium:app":"/Users/viktor/builds/app-dev-x86-debug.apk","appium:appActivity":"com.package.aea.auth.ui.splash.SplashScreenActivity","appium:appPackage":"com.package.ecrew.dev","appium:autoAcceptAlerts":false,"appium:automationName":"Espresso","appium:clearSystemFiles":true,"appium:deviceName":"192.168.57.101:5555","appium:disableAndroidWatchers":true,"forceEspressoRebuild":true,"appium:fullReset":"true",... [debug] [35m[BaseDriver][39m Event 'newSessionRequested' logged at 1547050391115 (18:13:11 GMT+0200 (EET)) [warn] [35m[BaseDriver][39m The capabilities ["forceEspressoRebuild"] are not standard capabilities and should have an extension prefix [warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised. [warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised. [info] [35m[Appium][39m Creating new EspressoDriver (v1.5.4) session [info] [35m[Appium][39m Capabilities: [info] [35m[Appium][39m forceEspressoRebuild: true [info] [35m[Appium][39m platformName: android [info] [35m[Appium][39m app: /Users/viktor/builds/app-dev-x86-debug.apk [info] [35m[Appium][39m appActivity: com.package.aea.auth.ui.splash.SplashScreenActivity [info] [35m[Appium][39m appPackage: com.package.ecrew.dev [info] [35m[Appium][39m autoAcceptAlerts: false [info] [35m[Appium][39m automationName: Espresso [info] [35m[Appium][39m clearSystemFiles: true [info] [35m[Appium][39m deviceName: 192.168.57.101:5555 [info] [35m[Appium][39m disableAndroidWatchers: true [info] [35m[Appium][39m fullReset: true [info] [35m[Appium][39m keyAlias: fake [info] [35m[Appium][39m keyPassword: 123456 [info] [35m[Appium][39m keystorePassword: 123456 [info] [35m[Appium][39m keystorePath: /Users/viktor/fake_signatures/fake.keystore [info] [35m[Appium][39m newCommandTimeout: 15000 [info] [35m[Appium][39m noReset: false [info] [35m[Appium][39m platformVersion: 7 [info] [35m[Appium][39m useKeystore: true [debug] [35m[BaseDriver][39m W3C capabilities {"alwaysMatch":{"appium:for... and MJSONWP desired capabilities {"app":"/Users/viktor/build... were provided [debug] [35m[BaseDriver][39m Creating session with W3C capabilities: {"alwaysMatch":{"appium:for... [warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised. [warn] [35m[BaseDriver][39m Boolean capability passed in as string. Functionality may be compromised. [warn] [35m[BaseDriver][39m Capability 'noReset' changed from string to boolean. This may cause unexpected behavior [warn] [35m[BaseDriver][39m Capability 'fullReset' changed from string to boolean. This may cause unexpected behavior [warn] [35m[BaseDriver][39m The following capabilities were provided, but are not recognized by appium: autoAcceptAlerts, disableAndroidWatchers. [info] [35m[BaseDriver][39m Session created with session id: 242360d3-b554-4acf-a6ba-4c50402ebd0e [info] [35m[BaseDriver][39m Using local app '/Users/viktor/builds/app-dev-x86-debug.apk' [debug] [35m[Espresso][39m Checking whether app is actually present [info] [35m[Espresso][39m EspressoDriver version: 1.5.4 [info] [35m[AndroidDriver][39m Java version is: 1.8.0_191 [info] [35m[ADB][39m Checking whether adb is present [info] [35m[ADB][39m Found 44 'build-tools' folders under '/Users/viktor/Library/Android/sdk/' (newest first): [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/28.0.3 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/28.0.2 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/28.0.1 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/28.0.0 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/28.0.0-rc2 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/28.0.0-rc1 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/27.0.3 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/27.0.2 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/27.0.1 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/27.0.0 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/26.0.3 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/26.0.2 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/26.0.1 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/26.0.0 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/25.0.3 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/25.0.2 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/25.0.1 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/25.0.0 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/24.0.3 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/24.0.2 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/24.0.1 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/24.0.0 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/23.0.3 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/23.0.2 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/23.0.1 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/23.0.0 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/22.0.1 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/22.0.0 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/21.1.2 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/21.1.1 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/21.1.0 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/21.0.2 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/21.0.1 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/21.0.0 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/20.0.0 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/19.1.0 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/19.0.3 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/19.0.2 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/19.0.1 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/19.0.0 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/18.1.1 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/18.1.0 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/18.0.1 [info] [35m[ADB][39m /Users/viktor/Library/Android/sdk/build-tools/17.0.0 [info] [35m[ADB][39m Using adb from /Users/viktor/Library/Android/sdk/platform-tools/adb [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 1 device(s) connected [info] [35m[AndroidDriver][39m Looking for a device with Android '7' [debug] [35m[ADB][39m Setting device id to 192.168.57.101:5555 [info] [35m[ADB][39m Getting device platform version [debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 shell getprop ro.build.version.release'[debug] [35m[ADB][39m Current device property 'ro.build.version.release': 7.0 [info] [35m[AndroidDriver][39m Using device: 192.168.57.101:5555 [debug] [35m[ADB][39m Setting device id to 192.168.57.101:5555 [debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 shell getprop ro.build.version.sdk' [debug] [35m[ADB][39m Current device property 'ro.build.version.sdk': 24 [debug] [35m[ADB][39m Device API level: 24 [debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 wait-for-device' [debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 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 '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 shell dumpsys package io.appium.settings' [debug] [35m[ADB][39m 'io.appium.settings' is installed [debug] [35m[ADB][39m Getting package info for 'io.appium.settings' [debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 shell dumpsys package io.appium.settings' [info] [35m[ADB][39m Checking whether aapt is present [info] [35m[ADB][39m Using aapt from /Users/viktor/Library/Android/sdk/build-tools/28.0.3/aapt [debug] [35m[ADB][39m The version code of the installed 'io.appium.settings' is greater than the application version code (15 > 13) [debug] [35m[ADB][39m There is no need to install/upgrade '/Applications/Appium.app/Contents/Resources/app/node_modules/io.appium.settings/apks/settings_apk-debug.apk' [debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 shell ps' [debug] [35m[AndroidDriver][39m io.appium.settings is already running. There is no need to reset its permissions. [debug] [35m[ADB][39m Device API level: 24 [debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 shell appops set io.appium.settings android:mock_location allow' [debug] [35m[Logcat][39m Starting logcat capture [debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 shell settings get global animator_duration_scale'[debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 shell settings get global transition_animation_scale'[debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 shell settings get global window_animation_scale'[debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 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 '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 forward tcp:8300 tcp:6791' [debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 shell dumpsys window' [info] [35m[AndroidDriver][39m Screen already unlocked, doing nothing [debug] [35m[ADB][39m Uninstalling com.package.ecrew.dev [debug] [35m[ADB][39m Getting install status for com.package.ecrew.dev [debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 shell dumpsys package com.package.ecrew.dev'[debug] [35m[ADB][39m 'com.package.ecrew.dev' is not installed [info] [35m[ADB][39m com.package.ecrew.dev was not uninstalled, because it was not present on the device [debug] [35m[ADB][39m Checking app cert for /Users/viktor/builds/app-dev-x86-debug.apk [debug] [35m[ADB][39m Checking custom app cert for /Users/viktor/builds/app-dev-x86-debug.apk [debug] [35m[ADB][39m Printing keystore md5. [debug] [35m[ADB][39m Keystore MD5: EB:2F:E1:8B:6A:88:98:E1:E0:23:07:28:9A:A0:B1:07 [debug] [35m[ADB][39m Entry: META-INF/CERT.RSA [debug] [35m[ADB][39m entryPath: /var/folders/_t/355l8b6n5rz954747kzq6xnr0000gn/T/com.package.ecrew.dev/cert [debug] [35m[ADB][39m entryFile: /var/folders/_t/355l8b6n5rz954747kzq6xnr0000gn/T/com.package.ecrew.dev/cert/META-INF/CERT.RSA [debug] [35m[ADB][39m extracted! [debug] [35m[ADB][39m Printing apk md5.[debug] [35m[ADB][39m entryHash MD5: EB:2F:E1:8B:6A:88:98:E1:E0:23:07:28:9A:A0:B1:07 [debug] [35m[ADB][39m keystore MD5: EB:2F:E1:8B:6A:88:98:E1:E0:23:07:28:9A:A0:B1:07 [debug] [35m[ADB][39m Matches keystore? true [debug] [35m[ADB][39m Getting install status for com.package.ecrew.dev [debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 shell dumpsys package com.package.ecrew.dev' [debug] [35m[ADB][39m 'com.package.ecrew.dev' is not installed [debug] [35m[AndroidDriver][39m Running full reset on 'com.package.ecrew.dev' (reinstall) [debug] [35m[ADB][39m Device API level: 24 [debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 install -r /Users/viktor/builds/app-dev-x86-debug.apk'[debug] [35m[ADB][39m Install command stdout: Success [debug] [35m[Espresso][39m 'forceEspressoRebuild' capability is enabled [info] [35m[Espresso][39m Repackaging espresso server for: 'com.package.ecrew.dev' [info] [35m[Espresso][39m Creating new manifest: '/var/folders/_t/355l8b6n5rz954747kzq6xnr0000gn/T/AndroidManifest.xml' [debug] [35m[ADB][39m Found the most recent Android platform: {"platform":"android-28","platformPath":"/Users/viktor/Library/Android/sdk/platforms/android-28"} [debug] [35m[ADB][39m Compiling the manifest: /Users/viktor/Library/Android/sdk/build-tools/28.0.3/aapt package -M /var/folders/_t/355l8b6n5rz954747kzq6xnr0000gn/T/AndroidManifest.xml --rename-manifest-package io.appium.espressoserver.test --rename-instrumentation-target-package com.package.ecrew.dev -I /Users/viktor/Library/Android/sdk/platforms/android-28/android.jar -F /var/folders/_t/355l8b6n5rz954747kzq6xnr0000gn/T/AndroidManifest.xml.apk -f[debug] [35m[ADB][39m Compiled the manifest at '/var/folders/_t/355l8b6n5rz954747kzq6xnr0000gn/T/AndroidManifest.xml.apk' [debug] [35m[ADB][39m Inserting manifest, src: /Applications/Appium.app/Contents/Resources/app/node_modules/appium-espresso-driver/espresso-server/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk dst: /var/folders/_t/355l8b6n5rz954747kzq6xnr0000gn/T/io.appium.espressoserver.test_1.5.4_com.package.ecrew.dev.apk [debug] [35m[ADB][39m Unzipping '/var/folders/_t/355l8b6n5rz954747kzq6xnr0000gn/T/AndroidManifest.xml.apk' to '/var/folders/_t/355l8b6n5rz954747kzq6xnr0000gn/T' [debug] [35m[ADB][39m Unzip successful [debug] [35m[ADB][39m Testing new tmp apk [debug] [35m[ADB][39m Moving manifest [debug] [35m[ADB][39m Inserted manifest. [info] [35m[Espresso][39m Repackaged espresso server ready: '/var/folders/_t/355l8b6n5rz954747kzq6xnr0000gn/T/io.appium.espressoserver.test_1.5.4_com.package.ecrew.dev.apk' [debug] [35m[ADB][39m Checking app cert for /var/folders/_t/355l8b6n5rz954747kzq6xnr0000gn/T/io.appium.espressoserver.test_1.5.4_com.package.ecrew.dev.apk [debug] [35m[ADB][39m Checking custom app cert for /var/folders/_t/355l8b6n5rz954747kzq6xnr0000gn/T/io.appium.espressoserver.test_1.5.4_com.package.ecrew.dev.apk [debug] [35m[ADB][39m Printing keystore md5.[debug] [35m[ADB][39m Keystore MD5: EB:2F:E1:8B:6A:88:98:E1:E0:23:07:28:9A:A0:B1:07 [debug] [35m[ADB][39m Entry: META-INF/CERT.RSA [debug] [35m[ADB][39m entryPath: /var/folders/_t/355l8b6n5rz954747kzq6xnr0000gn/T/io.appium.espressoserver.test/cert [debug] [35m[ADB][39m entryFile: /var/folders/_t/355l8b6n5rz954747kzq6xnr0000gn/T/io.appium.espressoserver.test/cert/META-INF/CERT.RSA [debug] [35m[ADB][39m extracted! [debug] [35m[ADB][39m Printing apk md5. [debug] [35m[ADB][39m entryHash MD5: 90:54:E1:6E:CA:27:26:EA:48:A2:02:CE:28:52:34:2E [debug] [35m[ADB][39m keystore MD5: EB:2F:E1:8B:6A:88:98:E1:E0:23:07:28:9A:A0:B1:07 [debug] [35m[ADB][39m Matches keystore? false[info] [35m[ADB][39m Using apksigner from /Users/viktor/Library/Android/sdk/build-tools/28.0.3/apksigner [info] [35m[ADB][39m Checking whether zipalign is present [info] [35m[ADB][39m Using zipalign from /Users/viktor/Library/Android/sdk/build-tools/28.0.3/zipalign [debug] [35m[ADB][39m /var/folders/_t/355l8b6n5rz954747kzq6xnr0000gn/T/io.appium.espressoserver.test_1.5.4_com.package.ecrew.dev.apk' is already zip-aligned. Doing nothing [debug] [35m[ADB][39m Signing '/var/folders/_t/355l8b6n5rz954747kzq6xnr0000gn/T/io.appium.espressoserver.test_1.5.4_com.package.ecrew.dev.apk' with custom cert [debug] [35m[ADB][39m Starting '/Users/viktor/Library/Android/sdk/build-tools/28.0.3/apksigner' with args '["sign","--ks","/Users/viktor/fake_signatures/fake.keystore","--ks-key-alias","fake","--ks-pass","pass:123456","--key-pass","pass:123456","/var/folders/_t/355l8b6n5rz954747kzq6xnr0000gn/T/io.appium.espressoserver.test_1.5.4_com.package.ecrew.dev.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 '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 shell dumpsys package io.appium.espressoserver.test' [debug] [35m[ADB][39m 'io.appium.espressoserver.test' is installed [debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 shell am force-stop io.appium.espressoserver.test'[debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 uninstall io.appium.espressoserver.test'[debug] [35m[ADB][39m 'adb uninstall io.appium.espressoserver.test' command output: Success [info] [35m[ADB][39m io.appium.espressoserver.test was successfully uninstalled [info] [35m[Espresso][39m Uninstalled the obsolete Espresso server package from the device under test [debug] [35m[ADB][39m Getting install status for io.appium.espressoserver.test [debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 shell dumpsys package io.appium.espressoserver.test' [debug] [35m[ADB][39m 'io.appium.espressoserver.test' is not installed [debug] [35m[ADB][39m App '/var/folders/_t/355l8b6n5rz954747kzq6xnr0000gn/T/io.appium.espressoserver.test_1.5.4_com.package.ecrew.dev.apk' is not installed [debug] [35m[ADB][39m Installing '/var/folders/_t/355l8b6n5rz954747kzq6xnr0000gn/T/io.appium.espressoserver.test_1.5.4_com.package.ecrew.dev.apk' [debug] [35m[ADB][39m Device API level: 24 [debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 install /var/folders/_t/355l8b6n5rz954747kzq6xnr0000gn/T/io.appium.espressoserver.test_1.5.4_com.package.ecrew.dev.apk'[debug] [35m[ADB][39m Install command stdout: Success [info] [35m[Espresso][39m Installed Espresso Test Server apk '/var/folders/_t/355l8b6n5rz954747kzq6xnr0000gn/T/io.appium.espressoserver.test_1.5.4_com.package.ecrew.dev.apk' (pkg: 'io.appium.espressoserver.test') [info] [35m[Espresso][39m Starting Espresso Server v1.5.4 with cmd: adb shell am instrument -w -e debug false io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner [debug] [35m[ADB][39m Creating ADB subprocess with args: ["-P",5037,"-s","192.168.57.101:5555","shell","am","instrument","-w","-e","debug","false","io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner"][debug] [35m[Espresso][39m [Instrumentation][STDOUT] [info] [35m[Espresso][39m Waiting for Espresso to be online... [debug] [35m[JSONWP Proxy][39m Matched '/status' to command name 'getStatus' [debug] [35m[JSONWP Proxy][39m Proxying [GET /status] to [GET http://localhost:8300/status] with no body [debug] [35m[MJSONWP][39m Matched JSONWP error code 13 to UnknownError[debug] [35m[JSONWP Proxy][39m Matched '/status' to command name 'getStatus' [debug] [35m[JSONWP Proxy][39m Proxying [GET /status] to [GET http://localhost:8300/status] with no body [debug] [35m[JSONWP Proxy][39m Got response with status 200: "{"id":"e16be483-7de7-490f-acb1-64f4e70fe060","sessionId":null,"status":0,"value":null}" [debug] [35m[JSONWP Proxy][39m Matched '/session' to command name 'createSession' [debug] [35m[JSONWP Proxy][39m Proxying [POST /session] to [POST http://localhost:8300/session] with body: {"desiredCapabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","forceEspressoRebuild":true,"app":"/Users/viktor/builds/app-dev-x86-debug.apk","appActivity":"com.package.aea.auth.ui.splash.SplashScreenActivity","appPackage":"com.package.ecrew.dev","autoAcceptAlerts":false,"automationName":"Espresso","clearSystemFiles":true,"deviceName":"192.168.57.101:5555","disableAndroidWatchers":true,"fullReset":true,"keyAlias":"fake","keyPassword":"123456","keystorePassword":"123456","keystorePath":"/Users/viktor/fake_signatures/fake.keystore","newCommandTimeout":15000,"noReset":false,"platformVersion":"7","useKeystore":true},"platformName":"android","forceEspressoRebuild":true,"app":"/Users/viktor/builds/app-dev-x86-debug.apk","appActivity":"com.package.aea.auth.ui.splash.SplashScreenActivity","appPackage":"com.package.ecrew.de... [debug] [35m[Espresso][39m [Instrumentation][STDOUT] io.appium.espressoserver.EspressoServerRunnerTest: [debug] [35m[Espresso][39m [Instrumentation][STDOUT] Process crashed while executing startEspressoServer(io.appium.espressoserver.EspressoServerRunnerTest): [debug] [35m[Espresso][39m [Instrumentation][STDOUT] java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor(AppCompatDelegateImpl.java:555) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor(AppCompatDelegateImpl.java:518) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at androidx.appcompat.app.AppCompatDelegateImpl.onPostCreate(AppCompatDelegateImpl.java:299) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at androidx.appcompat.app.AppCompatActivity.onPostCreate(AppCompatActivity.java:98) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at android.app.Instrumentation.callActivityOnPostCreate(Instrumentation.java:1199) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2628) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at android.app.ActivityThread.-wrap12(ActivityThread.java) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at android.os.Handler.dispatchMessage(Handler.java:102) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at android.os.Looper.loop(Looper.java:154) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at android.app.ActivityThread.main(ActivityThread.java:6077) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at java.lang.reflect.Method.invoke(Native Method) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] [debug] [35m[Espresso][39m [Instrumentation][STDOUT] Process crashed while executing startEspressoServer(io.appium.espressoserver.EspressoServerRunnerTest): [debug] [35m[Espresso][39m [Instrumentation][STDOUT] java.lang.RuntimeException: Unable to start activity ComponentInfo{com.package.ecrew.dev/com.package.aea.auth.ui.splash.SplashScreenActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at android.app.ActivityThread.-wrap12(ActivityThread.java) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at android.os.Handler.dispatchMessage(Handler.java:102) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at android.os.Looper.loop(Looper.java:154) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at android.app.ActivityThread.main(ActivityThread.java:6077) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at java.lang.reflect.Method.invoke(Native Method) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor(AppCompatDelegateImpl.java:555) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor(AppCompatDelegateImpl.java:518) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at androidx.appcompat.app.AppCompatDelegateImpl.onPostCreate(AppCompatDelegateImpl.java:299) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at androidx.appcompat.app.AppCompatActivity.onPostCreate(AppCompatActivity.java:98) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at android.app.Instrumentation.callActivityOnPostCreate(Instrumentation.java:1199) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2628) [debug] [35m[Espresso][39m [Instrumentation][STDOUT] ... 9 more[warn] [35m[JSONWP Proxy][39m Got an unexpected response: {"code":"ECONNRESET"} [debug] [35m[Espresso][39m Deleting espresso session [debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 shell am broadcast -a io.appium.settings.animation -n io.appium.settings/.receivers.AnimationSettingReceiver --es setstatus enable' [debug] [35m[Espresso][39m [Instrumentation][STDOUT] INSTRUMENTATION_RESULT: shortMsg=Process crashed. [debug] [35m[Espresso][39m [Instrumentation][STDOUT] INSTRUMENTATION_CODE: 0 [info] [35m[Espresso][39m Instrumentation process exited with code 0 from signal null[debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 shell am force-stop com.package.ecrew.dev'[debug] [35m[Espresso][39m FULL_RESET set to 'true', Uninstalling 'com.package.ecrew.dev' [debug] [35m[ADB][39m Uninstalling com.package.ecrew.dev [debug] [35m[ADB][39m Getting install status for com.package.ecrew.dev [debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 shell dumpsys package com.package.ecrew.dev' [debug] [35m[ADB][39m 'com.package.ecrew.dev' is installed [debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 shell am force-stop com.package.ecrew.dev'[debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 uninstall com.package.ecrew.dev' [debug] [35m[ADB][39m 'adb uninstall com.package.ecrew.dev' command output: Success [info] [35m[ADB][39m com.package.ecrew.dev was successfully uninstalled [debug] [35m[Logcat][39m Stopping logcat capture [debug] [35m[ADB][39m Device API level: 24 [debug] [35m[ADB][39m Removing forwarded port socket connection: 8300 [debug] [35m[ADB][39m Running '/Users/viktor/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.57.101:5555 forward --remove tcp:8300' [debug] [35m[BaseDriver][39m Event 'newSessionStarted' logged at 1547050401870 (18:13:21 GMT+0200 (EET)) [debug] [35m[W3C][39m Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: socket hang up [debug] [35m[W3C][39m at JWProxy.command (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:236:13) [info] [35m[HTTP][39m [37m<-- POST /wd/hub/session [39m[31m500[39m [90m10773 ms - 543[39m [info] [35m[HTTP][39m [90m[39m
https://stackoverflow.com/questions/21814825/you-need-to-use-a-theme-appcompat-theme-or-descendant-with-this-activity
I assume it is a problem with the app itself
https://stackoverflow.com/questions/21814825/you-need-to-use-a-theme-appcompat-theme-or-descendant-with-this-activity
I assume it is a problem with the app itself
we dont use AppCompat theme as well, we extend from Theme.MaterialComponents.Light.NoActionBar
https://material.io/develop/android/docs/getting-started/
I'm currently running into this as well. Our app is all using AppCompat based themes. At least in our case we think it's coming from the Spotify SDK. The Spotify login activities use @android:style/Theme.Translucent.NoTitleBar
, which is not a derivative of Theme.AppCompat
.
https://spotify.github.io/android-sdk/auth-lib/docs/com/spotify/sdk/android/authentication/AuthenticationClient.html
We seem a bit stuck on our end as far as using the Espresso driver.
any solution? I am facing same issue in Appium: 1.17.0-beta.1