Android Emulator not found

I’m trying to run Detox but I’m stuck in this error:

detox[3726] ERROR: DetoxRuntimeError: Cannot boot Android Emulator with the name: ‘Pixel_2_API_30’

How can I fix it? I don’t know how to create an emulator or how to see which one is available to use…

My build: Bitrise - Mobile Continuous Integration and Delivery - iOS & Android Build Automation

bitrise.yml

---
format_version: 1.1.0
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
trigger_map:
- pull_request_target_branch: "*"
  workflow: tests
workflows:
  _tests_setup:
    steps:
    - activate-ssh-key@4:
        run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
    - git-clone:
        inputs:
        - clone_depth: ''
        title: Git Clone Repo
    - script:
        inputs:
        - content: |-
            #!/bin/bash

            npm cache verify

            npm install
        title: Install NPM Packages
    before_run:
    after_run:
  _detox_tests:
    before_run: []
    after_run: []
    steps:
    - npm:
        inputs:
        - command: install -g detox-cli
        title: Install Detox CLI
    - npm:
        inputs:
        - command: install -g react-native-cli
        title: Install React Native CLI
    - script:
        inputs:
        - content: |-
            #!/bin/bash

            brew tap wix/brew
            brew install applesimutils
        title: Install Detox Utils
    - script:
        inputs:
        - content: |-
            #!/bin/bash

            detox build --configuration android.emu.debug
        title: Detox - Build Debug App
    - script:
        inputs:
        - content: |-
            #!/bin/bash

            detox test --configuration android.emu.debug --cleanup --detectOpenHandles
        title: Detox - Run E2E Tests
  tests:
    before_run:
    - _tests_setup
    - _detox_tests
    after_run: []

Hi! If you need an Android Emulator you have to start one using our AVD Manager Step. Additionally, you should put the Wait for Android Emulator step directly after it to make sure everything is fully ready before Detox begins running tests.

With that said, please be aware that Bitrise doesn’t officially support Detox. Many of our customers use it successfully and we provide general instructions / guidance, but there’s a limit to how much support we can provide.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.