Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: No instrumentation runner found on device emulator-5554 for package host.exp.exponent #11441

Closed
YakovTaranis opened this issue Dec 22, 2020 · 4 comments
Labels
Detox Automated native testing stale

Comments

@YakovTaranis
Copy link

During poc of mobile E2E testing using Expo app + Detox I tried to setup test env using https://github.com/yaron1m/expo-detox-typescript-example instructions.
While test on iOS device is successful test on Android device is failing with "Error: No instrumentation runner found on device emulator-5554 for package host.exp.exponent" error message.

When I open an app using Android device from Expo web client, it opens without an issue.

expo diagnostics output:
Expo CLI 4.0.16 environment info:
System:
OS: macOS 11.1
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 12.19.0 - /usr/local/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 7.0.3 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 14.3, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
Android SDK:
API Levels: 29, 30
Build Tools: 29.0.0, 30.0.0, 30.0.2
System Images: android-29 | Google Play Intel x86 Atom
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.6858069
Xcode: 12.3/12C33 - /usr/bin/xcodebuild
npmPackages:
expo: ^39.0.0 => 39.0.3
react: 16.13.1 => 16.13.1
react-dom: 16.13.1 => 16.13.1
react-native: https://github.com/expo/react-native/archive/sdk-39.0.3.tar.gz => 0.63.2
npmGlobalPackages:
expo-cli: 4.0.16
Expo Workflow: managed

Logs printout:
detox[58538] INFO: [DetoxServer.js] server listening on localhost:62462...
detox[58538] DEBUG: [AsyncWebSocket.js/WEBSOCKET_OPEN] opened web socket to: ws://localhost:62462
detox[58538] DEBUG: [DetoxServer.js/LOGIN] role=tester, sessionId=12f8b776-dd44-e082-4ce3-6926dc05aa27
detox[58538] DEBUG: [DetoxServer.js/LOGIN_SUCCESS] role=tester, sessionId=12f8b776-dd44-e082-4ce3-6926dc05aa27
detox[58538] DEBUG: [exec.js/EXEC_CMD, #0] "/Users/yakovvilenchik/Library/Android/sdk/emulator/emulator" -list-avds --verbose
detox[58538] DEBUG: [exec.js/EXEC_CMD, #1] "/Users/yakovvilenchik/Library/Android/sdk/emulator/emulator" -version
detox[58538] DEBUG: [EmulatorVersionResolver.js/EMU_BIN_VERSION_DETECT] Detected emulator binary version { major: 30, minor: 1, patch: 5, toString: [Function: toString] }
detox[58538] DEBUG: [AndroidDriver.js/ALLOCATE_DEVICE] Trying to allocate a device based on "Pixel_4_API_29"
detox[58538] DEBUG: [exec.js/EXEC_CMD, #2] "/Users/yakovvilenchik/Library/Android/sdk/platform-tools/adb" devices
detox[58538] DEBUG: [exec.js/EXEC_SUCCESS, #2] List of devices attached
emulator-5554 device

detox[58538] DEBUG: [FreeDeviceFinder.js/DEVICE_LOOKUP] Found a matching & free device emulator-5554
detox[58538] DEBUG: [AndroidDriver.js/ALLOCATE_DEVICE] Settled on emulator-5554
detox[58538] DEBUG: [exec.js/EXEC_CMD, #3] "/Users/yakovvilenchik/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "getprop dev.bootcomplete"
detox[58538] DEBUG: [exec.js/EXEC_CMD, #4] "/Users/yakovvilenchik/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "getprop ro.build.version.sdk"
detox[58538] DEBUG: [exec.js/EXEC_CMD, #5] "/Users/yakovvilenchik/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "settings put global animator_duration_scale 0"
detox[58538] DEBUG: [exec.js/EXEC_CMD, #6] "/Users/yakovvilenchik/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "settings put global window_animation_scale 0"
detox[58538] DEBUG: [exec.js/EXEC_CMD, #7] "/Users/yakovvilenchik/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "settings put global transition_animation_scale 0"
detox[58538] DEBUG: [exec.js/EXEC_CMD, #8] "/Users/yakovvilenchik/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "dumpsys power | grep "^[ ]m[UW].=""
detox[58538] DEBUG: [exec.js/EXEC_CMD, #9] "/Users/yakovvilenchik/Library/Android/sdk/build-tools/30.0.2/aapt" dump badging "/Users/yakovvilenchik/automation/expo_android_poc/expo-detox-typescript-example/bin/Exponent.apk" | grep -e "package: name="
detox[58538] DEBUG: [exec.js/EXEC_CMD, #10] "/Users/yakovvilenchik/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "pm list packages host.exp.exponent"
detox[58538] DEBUG: [exec.js/EXEC_CMD, #11] "/Users/yakovvilenchik/Library/Android/sdk/platform-tools/adb" -s emulator-5554 uninstall host.exp.exponent
detox[58538] DEBUG: [exec.js/EXEC_CMD, #12] "/Users/yakovvilenchik/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "pm list packages host.exp.exponent.test"
detox[58538] DEBUG: [exec.js/EXEC_CMD, #13] "/Users/yakovvilenchik/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "rm -fr /data/local/tmp/detox"
detox[58538] DEBUG: [exec.js/EXEC_CMD, #14] "/Users/yakovvilenchik/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "mkdir -p /data/local/tmp/detox"
detox[58538] DEBUG: [exec.js/EXEC_CMD, #15] "/Users/yakovvilenchik/Library/Android/sdk/platform-tools/adb" -s emulator-5554 push "/Users/yakovvilenchik/automation/expo_android_poc/expo-detox-typescript-example/bin/Exponent.apk" "/data/local/tmp/detox/Application.apk"
detox[58538] DEBUG: [exec.js/EXEC_CMD, #16] "/Users/yakovvilenchik/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "pm install -r -g -t /data/local/tmp/detox/Application.apk"
detox[58538] DEBUG: [exec.js/EXEC_CMD, #17] "/Users/yakovvilenchik/Library/Android/sdk/platform-tools/adb" -s emulator-5554 push "/Users/yakovvilenchik/automation/expo_android_poc/expo-detox-typescript-example/androidTest/Exponent/Exponent-androidTest.apk" "/data/local/tmp/detox/Test.apk"
detox[58538] DEBUG: [exec.js/EXEC_CMD, #18] "/Users/yakovvilenchik/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "pm install -r -g -t /data/local/tmp/detox/Test.apk"
detox[58538] DEBUG: [exec.js/EXEC_CMD, #19] "/Users/yakovvilenchik/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "am force-stop host.exp.exponent"
detox[58538] DEBUG: [exec.js/EXEC_CMD, #20] "/Users/yakovvilenchik/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "date +"%m-%d %T.000""
detox[58538] DEBUG: [exec.js/EXEC_CMD, #21] "/Users/yakovvilenchik/Library/Android/sdk/platform-tools/adb" -s emulator-5554 reverse tcp:62462 tcp:62462
detox[58538] DEBUG: [exec.js/EXEC_CMD, #22] "/Users/yakovvilenchik/Library/Android/sdk/platform-tools/adb" -s emulator-5554 shell "pm list instrumentation"
detox[58538] ERROR: [DetoxExportWrapper.js/DETOX_INIT_ERROR]
Error: No instrumentation runner found on device emulator-5554 for package host.exp.exponent

@AdamJNavarro AdamJNavarro added the Detox Automated native testing label Dec 22, 2020
@YakovTaranis
Copy link
Author

Any update on this issue?

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2022

This issue is stale because it has been open for 60 days with no activity. If there is no activity in the next 7 days, the issue will be closed.

@github-actions github-actions bot added the stale label Feb 3, 2022
@github-actions
Copy link
Contributor

This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.

@dev-andremonteiro
Copy link

I've been running into this issue as well. Trying to make detox work on my android emulator. Did you manage to fix this ?
Thanks!

Expo SDK 46
Jest 29.4.3
Detox 20.1.2
DEV Client 1.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Detox Automated native testing stale
Projects
None yet
Development

No branches or pull requests

3 participants