I updated My flutter Version from 1.22 to 2.0. There are some errors in Flutter Doctor
. How Could I solve this. That happen Afer Updated my Flutter Version.
I am Using Android Studion 4.1.2, Ubuntu 20.04.2 LTS(64 bit)
Download and install Android Studio. Start Android Studio, and go through the 'Android Studio Setup Wizard'. This installs the latest Android SDK, Android SDK Command-line Tools, and Android SDK Build-Tools, which are required by Flutter when developing for Android. Accept Android licenses.
The chrome.exe file is located in a subfolder of "C:\Program Files (x86)" (e.g. C:\Program Files (x86)\Google\Chrome\Application\).
On a Mac, select Go in the Finder menu, then click Go to Folder. Paste the path into the textbox and click Go. On Ubuntu, select Go in the Files app menu, then click Enter Location. Paste the path into the textbox and hit Enter.
For Ubuntu 20.04, chromium is managed by snap. I set the environment variable as shown below.
CHROME_EXECUTABLE=/snap/bin/chromium
export CHROME_EXECUTABLE
Try 'type chromium' to make sure of the location on your system. I assume something similar will work for chrome.
I had the same error in Windows 10, Using VS Code even after setting CHROME_EXECUTABLE system environmental variable to the path of chrome.exe. I solved it by removing the double quotes around the path:
For ones who use MacOS and with another chromium-based browser than Google Chrome (Brave in my case). You can set in .zshrc
or .bashrc
export CHROME_EXECUTABLE="/Applications/Brave Browser.app/Contents/MacOS/Brave Browser"
After that, don't forget to source ~/.zshrc
or source ~/.bashrc
in the current terminal window.
flutter doctor -v
Now, "Chrome" will be seen as "Brave".
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