草庐IT

flutter - 第一次运行flutter 发现yaml文件报错: No pubspec.

我试着在此处遵循GetStatedhttps://flutter.io/setup-windows/得到>flutterrunError:Nopubspec.yamlfilefound.ThiscommandshouldberunfromtherootofyourFlutterproject.DonotrunthiscommandfromtherootofyourgitcloneofFlutter.如何修复? 最佳答案 您不在当前工作目录中。将目录更改为您的项目目录,然后运行​​>>flutterrun以便它可以找到pubspec.

visual-studio-code - 在 "pubspec.yaml"中找不到名为 "/Users/userName"的文件

我在使用VSCode工具时遇到一些问题。我无法更新软件包。$flutterpackagesgetRunning"flutterpackagesget"inmy_flutter_app...Couldnotfindafilenamed"pubspec.yaml"in"/Users/userName".pubgetfailed(66)我在my_flutter_app目录中,并且在那个目录根目录中很清楚有一个名为“pubspec.yaml”的文件。为什么系统在其他地方寻找pubspec.yaml,完全忽略那里的pubspec.yaml?这对我来说没有意义。当我尝试调试/运行程序时,我在调试控

Flutter - 运行 flutter 失败,找不到名为 "pubspec.yaml"的文件,更新 -(操作系统错误 : Access is denied.,errno = 5)

我刚刚解决了所有必要的依赖关系。Buildingfluttertool...Runningpubupgrade...Doctorsummary(toseealldetails,runflutterdoctor-v):[√]Flutter(Channelbeta,v0.7.3,onMicrosoftWindows[Version10.0.17134.228],localeen-US)[√]Androidtoolchain-developforAndroiddevices(AndroidSDK28.0.2)[√]AndroidStudio(version3.1)[√]IntelliJIDE

android-studio - 错误 : unable to locate asset entry in pubspec. yaml: "assets/CupertinoIcons.ttf"

将androidstudio升级到3.2.1和flutter插件后,我无法运行我的应用程序,出现以下错误:Error:unabletolocateassetentryinpubspec.yaml:"assets/CupertinoIcons.ttf".Errorbuildingassetsflutterdoctor-v[√]Flutter(Channeldev,v0.10.1,onMicrosoftWindows[Versión10.0.17763.134],localees-ES)•Flutterversion0.10.1atc:\flutter•Frameworkrevision

android - 在 flutter 中,如何将 tflite 添加为 pubspec.yaml 文件中的依赖项?

我对此有点困惑。现在我有了.tflite和label.txt但现在我想使用FlutterPlugin访问TensorFlowlite。在这里,我对将tflite添加为pubspec.yaml中的依赖项感到困惑 最佳答案 在cupertino_icons:^0.1.2下添加tflite:^1.0.4在您的项目中创建一个名为assets的新目录。将您的文件复制到assets文件夹中。将uses-material-design:true下面的资源添加到您的pubspec.yaml例如。Assets:-Assets/label.txt

dart - 使用文本模板或 DSL [例如YAML 或 JSX]

是否有标准的Flutter模式/包来通过存储在类似YAML的文件中的规范来实例化UI组件?虽然我当然可以这样写:Scaffold(body:Center(child:Column(children:[Text(我可能更喜欢加载一些类似YAML的描述,这反过来会创建这个小部件层次结构。模板/DSL需要有插槽,可以在其中以编程方式插入其他小部件,并且必须连接到用代码编写的逻辑。问:是否存在这样的东西? 最佳答案 对此的简短回答是否定的。长答案是......仍然没有。但是社区对某种DSL很感兴趣,如果某个时候没有开发出来,我会感到非常惊讶

Dart `pubspec.yaml` : Have one part of the package use Flutter without the whole package depending on Flutter

我正在尝试在pub.dart.org上创建一个适用于Flutter、Web和Other的包。只要包中的默认文件不具有平台依赖性,其他文件也可以这样做而不会导致整个包依赖于平台。这在一个文件使用dart:io而另一个文件使用dart:html时有效,只要默认导入不这样做即可。但是,添加任何类型的Flutter依赖项,比如因为包中只有一个文件使用它,会导致pub.dart.org将该包列为仅Flutter。我认为这与Flutter实际上需要pubspec.yaml中的SDK有关,但我无法找到有关此的任何进一步信息。 最佳答案 因为web

flutter 创建失败 "no pubspec.yaml found"

我正在尝试创建一个新项目,但flutter立即失败,并显示“未找到pubspec.yaml”。事实上,没有。它只创建了一个android目录,一个android\gradle和一个android\gradle\wrapper目录,而不是根目录中的单个文件。这是创建命令的输出:$fluttercreate-vpics[+34ms]executing:[c:\flutter\]gitrev-parse--abbrev-ref--symbolic@{u}[+153ms]Exitcode0from:gitrev-parse--abbrev-ref--symbolic@{u}[+2ms]orig

xcode - pubspec.yaml 中的第 3 方 Dart 包导致在 Xcode 中找不到致命文件错误(但适用于 Android)

我正在运行macOSMojave的MacBookPro上的AndroidStudio中开发Flutter应用程序。该应用程序在Android(模拟器和物理设备)上编译并运行,但无法为iOS(模拟器和物理设备)编译。如果在pubspec.yaml中没有引用第3个Dart库,它在两个平台上都能正常编译。Flutter医生没有显示任何错误。这是我的pubspec.yaml:name:yr_school_bus_cancellationsdescription:YorkRegionSchoolBusCancellations#Thefollowingdefinestheversionandbu

dart - flutter_google_places : ^0. pubspec.yaml 文件中的 2.1 插件错误

使用flutter_google_places在pubspec.yaml文件中出现错误:^0.2.1插件如下所示:我怎样才能摆脱flutter中的这类问题。注意:包裹没有缩进Erroronline18,column3ofpubspec.yaml:Apackagemaynotlistitselfasadependency.flutter_google_places:^0.2.1^^^^^^^^^^^^^^^^^^^^^pubspec.yaml文件:name:flutter_google_placesdescription:AnewFlutterapplication.#Thefollow