My flutter project is always launching android emulator and web emulator, even though I do not want to launch Android emulator at all (it’s just a flutter web project).
My launch.json is
{
"version": "0.2.0",
"configurations": [
{
"name": "Run on Web",
"request": "launch",
"type": "dart",
"flutterMode": "debug",
"args": [
"-d",
"chrome"
]
}
]
}
As you can see, no mention of Android emulator. Yet every time I open the environment, it tries hard to open it on Android (and 100 errors obviously as it’s not compatible).
How can I prevent that? Also, I don’t think launch.json as a whole is working a lot regarding the web preview; how can I change the Firebase Studio web preview params?
And finally, when I do flutter run -d chrome on the terminal, I don’t see the chrome launch ‘device’, yet the web preview is obviously launching on chrome? Months ago I didn’t have these issues, not sure what changed.
Edit: fixed the last issue by setting the address to chrome internally but this wasn’t very nice either