Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/184.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Dart 飞镖:突然有错误“;无法运行pub";_Dart_Dart Pub - Fatal编程技术网

Dart 飞镖:突然有错误“;无法运行pub";

Dart 飞镖:突然有错误“;无法运行pub";,dart,dart-pub,Dart,Dart Pub,我无法再从“工具”菜单“发布构建-调试”中构建我的应用程序 窗口警报为: Unable to run pub Please select a pubspec.yaml file before running pub. 如何“选择”pubspec.yaml文件?我在编辑器中突出显示了它,所以不是这样。我重新启动了编辑器,但当编辑器不起作用时,我重新启动了它。其他酒吧的功能也能发挥作用 如果我打开pubspec.yaml文件并在编辑器中单击“RunBuildDebug”,它就会生成。我最近没有添加

我无法再从“工具”菜单“发布构建-调试”中构建我的应用程序 窗口警报为:

Unable to run pub
Please select a pubspec.yaml file before running pub.
如何“选择”pubspec.yaml文件?我在编辑器中突出显示了它,所以不是这样。我重新启动了编辑器,但当编辑器不起作用时,我重新启动了它。其他酒吧的功能也能发挥作用

如果我打开pubspec.yaml文件并在编辑器中单击“RunBuildDebug”,它就会生成。我最近没有添加任何进口产品


是否存在可能已损坏的配置文件?

在项目视图中选择
pubspec.yaml
,然后使用
Tools>Pub build
或使用项目视图中
pubspec.yaml
文件上的上下文菜单。

是否使用DartEditor?使用pubspec.yaml file.OK的上下文菜单,这仍然有效。。。感谢大家四处查看,我发现这是一个历史混乱的bug,因为它似乎是零星的。昨天我可以发布一整天,今天选择pubspec.yaml或者这个项目没有帮助——不过重新启动Dart编辑器(1.10.1)起了作用。不知道如何复制!