flutter doctor 没有问题,但是报
(现用 flutter 版本为 2.5.3)
CMake Error at CMakeLists.txt:2 (project):
Generator
Visual Studio 16 2019
fluttercould not find any instance of Visual Studio.
解决方式:
升级 flutter 版本
$ flutter upgrade --force
Flutter 3.0.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f1875d570e (6 weeks ago) • 2022-07-13 11:24:16 -0700
Engine • revision e85ea0e79c
Tools • Dart 2.17.6 • DevTools 2.12.2