[android] <IDX> ✘ Preview failed to start

Hi there, I have this issue, how can I solve it?

2024-10-03T17:28:47Z [android] No supported devices found with name or id matching 'emulator-5554'.
2024-10-03T17:28:47Z [android] The following devices were found:
2024-10-03T17:28:47Z [android] Android SDK built for x86 (mobile) • emulator-5556  • android-x86 • Android 10 (API 29) (emulator)
2024-10-03T17:28:47Z [android] Android SDK built for x86 (mobile) • localhost:5555 • android-x86 • Android 10 (API 29) (emulator)
2024-10-03T17:28:47Z [android] Linux (desktop)                    • linux          • linux-x64   • IDX GNU/Linux 6.1.100+
2024-10-03T17:28:47Z [android] <IDX> ✘ Preview failed to start
2024-10-03T17:28:47Z [web] Launching lib/main.dart on Web Server in debug mode...
2024-10-03T17:28:48Z [web] Waiting for connection from debug service on Web Server...
2024-10-03T17:28:59Z [android] <IDX> Starting preview...```

hey,

are you trying to run two emulators?
did you edit you dev.nix file?
from that log, it looks like it was about start another preview.
typically i think the android emulator just runs on localhost:5555
:slight_smile:

Sorry for the late response. It looks like there’s somewhere in your code (or dev.nix) that references emulator-5554, can you find it and change it to “localhost:5555” please ? (as the comment above corrrectly points out)

I’ve noticed localhost:5556 showing up if you try to flutter run a second project in a terminal while the default myapp is running,

Is there a doc for idx describing how to change from default flutter myapp to a new project created with flutter create?