今天在android studio运行项目时出现如下错误:
D:..\android.dart_tool\package_config.json does not exist. Did you run this command from the same directory as your pubspec.yaml file?
进入D:..\android.dart_tool目录发现没有package_config.json 这个文件。解决方案如下:
在项目的android目录下执行如下命令:
flutter clean
flutter pub get