Search code examples
flutterhere-api

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 is my project directory for the plugins folder: directory

I feel like I'm doing something really dumb, but I would appreciate any help.


Solution

  • 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. This folder contains various files including this documentation.
    2. Inside you will find a TAR file that contains the HERE SDK for Flutter plugin.
    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.

    So, you need to unzip the package and then again inside the package you need to unzip the TAR (containing the plugin).