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

DetoxRuntimeError: Cannot boot Android Emulator with the name: 'Android 34' #4135

Closed
2 tasks
Brittognanaraj opened this issue Jul 20, 2023 · 4 comments
Closed
2 tasks

Comments

@Brittognanaraj
Copy link

Brittognanaraj commented Jul 20, 2023

What happened?

I try to ran my test in emulator, But never works and it returns the below error

● Test suite failed to run

   DetoxRuntimeError: Cannot boot Android Emulator with the name: 'Android 34'

   HINT: Make sure you choose one of the available emulators: Android_34,Pixel_6_API_34_1

     at AVDValidator._assertAVDMatch (../node_modules/detox/src/devices/allocation/drivers/android/emulator/AVDValidator.js:37:13)
     at AVDValidator.validate (../node_modules/detox/src/devices/allocation/drivers/android/emulator/AVDValidator.js:18:16)
     at EmulatorAllocDriver.allocate (../node_modules/detox/src/devices/allocation/drivers/android/emulator/EmulatorAllocDriver.js:34:5)
     at Detox._doInit (../node_modules/detox/src/Detox.js:196:26)

FYI: detox tests in iOS running smoothly.

What was the expected behaviour?

No response

Was it tested on latest Detox?

  • I have tested this issue on the latest Detox release and it still reproduces.

Did your test throw out a timeout?

Help us reproduce this issue!

No response

In what environment did this happen?

Detox version:"^19.4.0",
"detox-recorder": "^1.0.151",
React Native version: 0.68.3
Has Fabric (React Native's new rendering system) enabled: (yes/no)
Node version: v20.3.0
Device model: pixel
Android version: 34
Test-runner (select one): jest / other

Detox logs

Detox logs
● Test suite failed to run

   DetoxRuntimeError: Cannot boot Android Emulator with the name: 'Android 34'

   HINT: Make sure you choose one of the available emulators: Android_34,Pixel_6_API_34_1

     at AVDValidator._assertAVDMatch (../node_modules/detox/src/devices/allocation/drivers/android/emulator/AVDValidator.js:37:13)
     at AVDValidator.validate (../node_modules/detox/src/devices/allocation/drivers/android/emulator/AVDValidator.js:18:16)
     at EmulatorAllocDriver.allocate (../node_modules/detox/src/devices/allocation/drivers/android/emulator/EmulatorAllocDriver.js:34:5)
     at Detox._doInit (../node_modules/detox/src/Detox.js:196:26)

Device logs

Device logs
paste your device.log here!

More data, please!

No response

@noomorph
Copy link
Collaborator

Use Android_34

@Brittognanaraj
Copy link
Author

This issue closed. Thanks @noomorph

@bouncydragon
Copy link

Hi, I have this kind of issue the difference is that the app cannot see what kind of emulator should I use, even thou I have a running emulator.

image

@champa-b
Copy link

champa-b commented Aug 22, 2024

FAIL e2e/suite.test.js
● Test suite failed to run
DetoxRuntimeError: Cannot boot Android Emulator with the name: 'Pixel_7a_API_29'
HINT: Make sure you choose one of the available emulators: INFO | Storing crashdata in: /tmp/android-runner/emu-crash-34.2.16.db, detection is enabled for process: 2243,test
at AVDValidator._assertAVDMatch (node_modules/detox/src/devices/allocation/drivers/android/emulator/AVDValidator.js:36:13)
at AVDValidator.validate (node_modules/detox/src/devices/allocation/drivers/android/emulator/AVDValidator.js:18:16)
at async EmulatorAllocDriver.allocate
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 0.918 s
Ran all test suites.
09:51:10.864 detox[2218] E Command failed with exit code = 1:
jest --config e2e/jest.config.js

Use Android_34

how can i get to know my device name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants