Flutter之运行问题:Did you run this command from the same directory as your pubspec.yaml file?

运行Flutter项目时出现了下面的错误

Did you run this command from the same directory as your pubspec.yaml file?

Flutter之运行问题:Did you run this command from the same directory as your pubspec.yaml file?_第1张图片

是在项目中缺少了package_config.json这个文件。

在项目的Android目录下执行:

flutter clean

flutter pub get

如果没有加载文件反应

查看编译工具是否安装了Flutter 和Dart 插件。

你可能感兴趣的:(Flutter开发实践,flutter)