flutter - 无法创建 Aqueduct 项目

标签 flutter dart aqueduct

这是我在运行 aqueduct create project 时遇到的错误。 Aqueduct 已激活。

-- Aqueduct CLI Version: 3.3.0+1
*** Uncaught error
    Bad state: No element
  **** Stacktrace
  * #0      ListMixin.firstWhere (dart:collection/list.dart:150:5)
  * #1      CLIAqueductGlobal.aqueductPackageRef (package:aqueduct/src/cli/commands/create.dart:342:10)
  * #2      CLIAqueductGlobal.templateDirectory (package:aqueduct/src/cli/commands/create.dart:347:12)
  * #3      CLIAqueductGlobal.getTemplateLocation (package:aqueduct/src/cli/commands/create.dart:351:12)
  * #4      CLITemplateCreator.handle (package:aqueduct/src/cli/commands/create.dart:51:27)
  * #5      CLICommand.process (package:aqueduct/src/cli/command.dart:159:20)
  * <asynchronous suspension>
  * #6      CLICommand.process (package:aqueduct/src/cli/command.dart:135:12)
  * #7      main (file:///C:/Users/dos/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/aqueduct-3.3.0+1/bin/aqueduct.dart:9:27)
  * #8      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
  * #9      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
  ****

必须做什么?

最佳答案

我删除了所有关于 dart 和 flutter 的文件以及 vs code 和 android studio 的设置 n 下载 aqueduct 首先安装 dart 2.7.0 然后安装 dart 然后尝试

关于flutter - 无法创建 Aqueduct 项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62460164/

相关文章:

flutter - 当Web View 应用程序在Flutter Web View 应用程序中没有互联网的情况下打开时,如何显示 "You'重新离线?

Flutter 将网络图片转为byteData

dart - bottomNavigationBar在调用Navigator.pushNamed时会多次重建

dart - 如何使用 Homebrew 降级 Dart

postgresql - 如何在 Aqueduct 和 Postgres 中使用不同的表名

android - 使用Flutter执行任务 ':app:processReleaseResources' image_picker失败

flutter - 如何在 flutter 中强制应用程序进入肖像模式

flutter - 错误 : The getter X isn't defined for the class

flutter - 如何防止我的构建方法循环?

dart - 如何插入具有关系的记录