0

我已经在我的 .bashrc 中导出了 CHROME_EXECUTABLE 并且当我在终端中运行颤振医生时我没有任何问题。请参阅以下输出

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.3, on Linux, locale en_IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[✓] Connected device (2 available)

• No issues found!

但是当我通过Tools-> Flutter-> Flutter Doctor从android studio运行flutter Doctor时。我收到错误提示没有可用的 CHROME_EXECUTABLE。请参阅下面的输出。

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

是否有一些设置我必须在 Android Studio 中更改,以便我可以使用我的 chrome 作为设备。提前致谢。:)

4

1 回答 1

0

尝试这个;

  1. 转到设置>“外观和行为”>“路径变量”
  2. 点击右上角的小加号
  3. 设置 CHROME_EXECUTABLE
于 2021-07-26T21:23:28.150 回答