Flutter integration_test "No devices found" in CI
Flutter integration tests run on a real device, emulator, or simulator. If none is connected when flutter test integration_test or flutter drive runs, Flutter reports "No supported devices connected" and no test executes.
What this error means
The command fails with "No supported devices connected" or "No devices found with name or id matching ...". flutter devices lists nothing runnable in the job.
Flutter
No supported devices connected.
Run 'flutter emulators' to list and start any available device emulators.Common causes
No emulator/simulator was started
The job runs the integration tests without first booting a device, so Flutter has no target.
The device booted after Flutter checked
An emulator launched but had not finished booting, so flutter devices saw nothing ready.
How to fix it
Boot a device and wait before the test
- Start the emulator/simulator in the job.
- Wait until it is booted (
adb ... sys.boot_completedorsimctl boot). - Then run the integration tests, optionally with
-d.
Terminal
adb wait-for-device
adb shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done'
flutter test integration_test -d emulator-5554Run inside an emulator action
Run the Flutter integration tests within an emulator runner so the AVD is booted first.
.github/workflows/ci.yml
- uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 34
script: flutter test integration_testHow to prevent it
- Boot a device and wait for readiness before integration tests.
- Run inside an emulator action that gates on boot.
- Confirm
flutter devicesshows a target first.
Related guides
Flutter "flutter drive timed out" / waited for element in CIFix Flutter integration test timeouts in CI - a `flutter drive` / integration_test finder waited for a widget…
Maestro "No devices found" in CIFix Maestro "No devices found" in CI - `maestro test` could not detect a running emulator, simulator, or conn…
Appium "Could not find a connected Android device" in CIFix Appium "Could not find a connected Android device" (no devices/emulators) in CI - the UiAutomator2 driver…