首页 > 解决方案 > 找不到名为“pubspec.yaml”的文件 - here_sdk 示例错误

问题描述

按照 Github 上的这些说明运行 here_sdk 示例并收到错误。第一次尝试在 Flutter 中运行 Here 示例,但没有成功使用 Here 开发人员文档中的这些说明或其他说明。

链接到此处文档 - https://developer.here.com/documentation/flutter-sdk-explore/4.3.1.0/dev_guide/topics/quick-start.html

Flutter 入门

将 HERE SDK for Flutter 插件解压缩到示例应用项目中的插件文件夹。将文件夹重命名为“here_sdk”:hello_map/plugins/here_sdk (完成)

将 HERE SDK 凭据设置为 hello_map/android/app/src/main/AndroidManifest.xml (完成) hello_map/ios/Runner/Info.plist (完成)

启动 Android 模拟器或 iOS 模拟器并从应用程序的目录执行 flutter run - 或从 IDE 中运行应用程序。(因错误无法运行)

链接 - https://github.com/hermaps/here-sdk-examples#get-started-for-flutter

收到错误:

应用关闭后发送的事件:{id: 0, progressId: null, message: Running "flutter pub get" in hello_map_app...} 在 "C:\sec\Flutter\examples 中找不到名为 "pubspec.yaml" 的文件\这里的例子\hello_map_app\plugins\here_sdk”。 应用关闭后发送的事件:{id:0,progressId:null,finished:true} pub get failed (66;在“C:\sec\Flutter\examples\Here Examples\ 中找不到名为“pubspec.yaml”的文件hello_map_app\plugins\here_sdk”。)

错误是正确的,在 Flutter 的 here_sdk 下载中没有找到 yaml 文件。

标签: flutter-dependencies

解决方案


推荐阅读