Reputation: 342
I am trying to develop a web app with flutter but my device is not showing there in IDE when i execute flutter devices
$ flutter devices
2 connected devices:
Chrome • chrome • web-javascript • Brave Browser 78.1.0.1 unknown
Web Server • web-server • web-javascript • Flutter Tools
I could see two devices there but when i am using Andoid studio or vs code the browser is not showing up there
Thease are the screen shots from andoid studio and vs code
Upvotes: 4
Views: 3166
Reputation: 53
The answer above does work, but sometimes it doesn't. Especially for Linux distros have different ways of defining variables. However, what I found to be always working especially in manjaro are following:
/etc/profile.d
chrome.sh
(.sh is necessary)export CHROME_EXECUTABLE=/usr/bin/microsoft-edge-dev
Upvotes: 1
Reputation: 342
The Issue is solved by setting the path variable globally in my Linux
by editing the file /etc/environment
by running
sudo nano /etc/environment
and then adding the line
CHROME_EXECUTABLE=/opt/google/chrome/chrome
setting the CHROME_EXECUTABLE=<path-to-chrome-chromium-or-brave>
and restarting fixed my problem
Upvotes: 6