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.
run flutter pub global activate webdev
First you need to switch master channel
flutter channel master
Then run
flutter upgrade
Enable Web support by running
flutter config --enable-web
Find installation path of chrome by running
which chrome
set an Environment variable to chrome's installation path. If your installed using AUR it will in /opt/google/chrome/chrome
export CHROME_EXECUTABLE=/opt/google/chrome/chrome
Finally run
flutter devices
You can see chrome as a connected device.
To use chrome or chromium on Linux(Manjaro), first you have to find their location.
Run the following command:
which chromium
My chromium is located at:
/usr/bin/chromium
If you wish to add this browser to Flutter
, then you should add it to the CHROME_EXECUTABLE
environment variable.
the following command needs to be placed in the .bashrc
:
/usr/bin/chromium
is my chromium location; add yours.
You can use nano
:
nano .bashrc
Add the following command and press Ctrl+x
and then Y
to make sure it has been saved.
export CHROME_EXECUTABLE=/usr/bin/chromium
And finally run:
source .bashrc
Now restart the previous open IDE and it should work. If you run:
flutter doctor
You should find it in the connected device
.
check $PATH
try to chrome- and tab
ln -s /usr/bin/google-chrome-stable /usr/local/bin/google-chrome
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With