简体   繁体   English

无法弄清楚如何在此处为 Flutter 实施 sdk

[英]Can't Figure Out How To Implement HERE sdk for Flutter

So I've been trying to use the HERE sdk for flutter, but whenever I add the unzipped file to the plugins folder and add it to the pubsec.yaml it gives me this error: error所以我一直在尝试将 HERE sdk 用于 flutter,但是每当我将解压缩的文件添加到插件文件夹并将其添加到 pubsec.yaml 时,它都会给我这个错误

Here is my project directory for the plugins folder: directory这是我的插件文件夹的项目目录:目录

I feel like I'm doing something really dumb, but I would appreciate any help.我觉得我在做一些非常愚蠢的事情,但我会很感激任何帮助。

Looks like the folder structure is not as expected.看起来文件夹结构不像预期的那样。 If you follow the quick start guide , you need to identify the plugin folder:如果您遵循快速入门指南,则需要识别插件文件夹:

  1. Unzip the downloaded HERE SDK for Flutter package.将下载的 SDK 解压到 Flutter package。 This folder contains various files including this documentation.此文件夹包含各种文件,包括此文档。
  2. Inside you will find a TAR file that contains the HERE SDK for Flutter plugin.在里面你会找到一个 TAR 文件,其中包含 Flutter 插件的 HERE SDK。
  3. Now unzip the plugin, then rename the folder to 'here_sdk' and place it to the plugins folder inside the example app's directory.现在解压缩插件,然后将文件夹重命名为“here_sdk”并将其放置到示例应用程序目录内的plugins文件夹中。

So, you need to unzip the package and then again inside the package you need to unzip the TAR (containing the plugin).因此,您需要解压缩 package,然后再次在 package 中解压缩 TAR(包含插件)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM