找不到 Chrome.尝试将 CHROME_EXECUTABLE 设置为 Chrome 可执行文件.颤振 2.0 [英] Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable. Flutter 2.0
问题描述
我将我的颤振版本从 1.22 更新到 2.0.Flutter Doctor
中存在一些错误.我怎么能解决这个问题.发生这种情况后更新了我的 Flutter 版本.
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.
我使用的是 Android Studion 4.1.2、Ubuntu 20.04.2 LTS(64 位)
I am Using Android Studion 4.1.2, Ubuntu 20.04.2 LTS(64 bit)
推荐答案
我使用的是 Chromebook.我安装了 Flutter 和 Android Studio.当我运行 $flutter doctor -v 时,我收到了与您相同的错误消息.
I'm on a Chromebook. I installed Flutter and Android Studio. When I ran $flutter doctor -v, I got the same error message that you got.
我不需要将文件路径导出到我的路径环境.我只需要安装 Chrome 以便 Flutter 可以在我的 Chromebook 上找到它.
I didn't need to export the file path to my path environment. I just needed to install Chrome so that Flutter could find it on my Chromebook.
这是对我有用的命令:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
然后我使用 Linux beta 命令安装它(右键单击下载的文件,使用 Linux beta 安装).它安装到这个目录:
Then I installed it using the Linux beta command (right click on the downloaded file, install using Linux beta). It installed it to this directory:
/usr/bin/
(或者,对于安装,我可以使用这个命令:
(Alternatively, for the install, I could've used this command:
sudo apt install ./google-chrome-stable_current_amd64.deb
)
我运行了 flutter doctor -v,现在它找到了 Chrome.
I ran flutter doctor -v and now it finds Chrome.
这篇关于找不到 Chrome.尝试将 CHROME_EXECUTABLE 设置为 Chrome 可执行文件.颤振 2.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!