Flutter 找不到我的 Visual Studio 2017 社区版:
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, v1.7.12-pre.40, on Microsoft Windows [Version 10.0.18922.1000], locale nl-BE)
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[√] Chrome - develop for the web
[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
[√] Android Studio (version 3.3)
[√] VS Code, 64-bit edition (version 1.35.1)
[√] Connected device (2 available)
! Doctor found issues in 1 category.
我读到颤动只检查默认的工作室位置。所以没有找到我的社区版也就不足为奇了。但是,由于以下错误,flutter 拒绝运行:
PS C:\src\flutterapps\flutter-desktop-embedding\example> flutter run
Downloading Web SDK... 1,1s
Launching lib/main.dart on Windows in debug mode...
Unable to find suitable Visual Studio toolchain. Please run `flutter doctor` for more details.
有什么方法可以告诉颤振 Visual Studio 的位置吗?我希望一些环境变量可以用于此目的。
任何人?