question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Chrome not showing up in Flutter: Select Device

See original GitHub issue

i’m on Manjaro. i’ve install google-chrome from AUR and it shows up in flutter doctor , flutter devices when executed from terminal. the problem is when i run flutter doctor from vscode it says

[✗] Chrome - develop for the web (Cannot find chrome executable at google-chrome) ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

23reactions
DanTupcommented, Apr 6, 2020

Have you set CHROME_EXECUTABLE in a terminal startup script that might not apply to VS Code?

Does it work if you launch VS Code from the terminal (where it works)?

You could also try setting the dart.env VS Code User Setting to apply env variables to all Dart/Flutter processes.

{
  "dart.env": {
    "CHROME_EXECUTABLE": "/foo"
  }
}

Also, if you capture the Daemon Log, that should show whether the device is not showing up at all, or being filtered out because it thinks your project is not a web project.

1reaction
DanTupcommented, Apr 8, 2020

I was setting $CHROME_EXECUTABLE in my .zshrc, but that didn’t carry over into vscode

Yeah, that’s a common problem. If VS Code is launched in a way that doesn’t inherit these environment variables, then of course it can’t find them. It’s better if you can set the variables somewhere globally so that all programs inherit them no matter how they’re launched, but that may be harder (if even possible) depending on your OS.

However, now the Flutter daemon exited on launch with (essentially) this log

Can you run flutter doctor -v from a terminal, and then also using the Flutter: Run Flutter Doctor command in VS Code and attach the outputs of each in a new issue? Also include whether /home/smolck/Android/Sdk/platform-tools/adb is the correct location of adb for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Studio not showing Chrome as Flutter device
1 Answer 1 · Uninstall Android Studio. Delete the folder at the above location. Reinstall Android Studio. Update sdk path in your sdk...
Read more >
flutter devices not showing chrome - Code Grepper
flutter devices doesn't show chrome ; 1. Do the following steps ; 2. ​ ; 3. flutter channel master ; 4. flutter upgrade...
Read more >
Building a web application with Flutter - Flutter documentation
If Chrome is installed, the flutter devices command outputs a Chrome device that opens the Chrome browser with your app running, and a...
Read more >
Android Studio not showing Chrome as Flutter device-Flutter
[Solved]-Android Studio not showing Chrome as Flutter device-Flutter · Uninstall Android Studio. Delete the folder at the above location. Reinstall Android ...
Read more >
Debug events | Google Analytics for Firebase
Catch up on everything announced at Firebase Summit, and learn how Firebase can ... To enable Analytics debug mode on your development device,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found