今天在android studio运行项目时出现如下错误:
![](https://i-blog.csdnimg.cn/blog_migrate/ae9188168c8bc8ca3c89821715ddee0b.png)
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