Configuring instrumented test for android


I have th following configuration>

      name: android/android-machine
      resource-class: xlarge
      tag: "2024.01.1"
      - checkout
      - android/start-emulator-and-run-tests:
          no-boot-anim: true
          no-window: true
          system-image: system-images;android-29;google_apis;x86_64
          test-command: ./gradlew connectedMyAppStagingDebugAndroidTest --stacktrace
      - run:
          name: Save test results #(instrumented)
          command: |
            mkdir -p ~/test-results/junit/
            find . -type f -regex ".*/build/outputs/androidTest-results/.*xml" -exec cp {} ~/test-results/junit/ \;
          when: always
      - store_test_results:
          path: ~/test-results
      - store_artifacts:
          path: ~/test-results/junit

But I get the following error during the build process

* What went wrong:
Task 'assembleDebugAndroidTest' is ambiguous in root project 'project' and its subprojects. Candidates are: 'assembleDevDebugAndroidTest',...```

Does anyone know why `assembleDebugAndroidTest` is ran and not `connectedMyAppStagingDebugAndroidTest` like written in my config?