admin管理员组

文章数量:1406010

Issue

Using the Flutter here_sdk doesn't work. Specifically, the HERE hello_map_app example only shows a white screen when loading.

I am using the Explore here_sdk. Here is the top of its pubspec.yaml:

name: here_sdk
description: HERE SDK for Flutter
version: 4.21.5
homepage: 

I've followed these Getting Started steps meticulously, including ensuring my API keys are correct (I don't get any incorrect credential errors when loading the app).

My System

Flutter/Dart versions:

Flutter 3.29.2 • channel stable • .git
Framework • revision c236373904 (9 days ago) • 2025-03-13 16:17:06 -0400
Engine • revision 18b71d647a
Tools • Dart 3.7.2 • DevTools 2.42.3

Development machine:

M1 Macbook Pro 2021, macOS Sequoia 15.1.1

Ran on devices (tested with debug, profile, and release via Flutter run ... and XCode's GUI):

- iOS simulator running iOS 17.5; and
- physical iPhone 15 running iOS 18.3.2.

Error Logs

These are shown when I run it on my iOS simulator via XCode:

[INFO ] Threading - Platform threading is initialized.
[INFO ] ApplicationUtilsInitializer - HERESDK Version 4.21.5
[INFO ] ConnectivityStatusNotifier - Network is reachable
FlutterView implements focusItemsInRect: - caching for linear focus movement is limited as long as this view is on screen.
flutter: The Dart VM service is listening on http://127.0.0.1:55450/ahlySVd0qx8=/
[INFO ] LockingProcess - Neither cache nor persistent map storage is locked
13:25:52.078 [INFO] ThreadPoolTaskScheduler - Starting thread 'OLPSDKPOOL_0'
13:25:52.079 [INFO] ThreadPoolTaskScheduler - Starting thread 'OLPSDKPOOL_1'
13:25:52.079 [INFO] ThreadPoolTaskScheduler - Starting thread 'OLPSDKPOOL_0'
13:25:52.079 [INFO] ThreadPoolTaskScheduler - Starting thread 'OLPSDKPOOL_1'
[INFO ] hsdk-SDKNativeEngineImpl - Creation
[INFO ] hsdk-OfflineAwareNetwork - Changed to OfflineMode=0 AllowedUrls=
[INFO ] hsdk-OfflineAwareNetwork - Changed to OfflineMode=0 AllowedUrls=
[ERROR] hsdk-initializeOptional - class ConsentInitializer not found
[ERROR] hsdk-initializeOptional - class LocationInitializer not found

My Ideas

  • I've already went through every Debugging and Troubleshooting step from their guide. Nothing works.
  • I am quite certain my API keys are correct.
  • I wonder if it could be these lines from the logs causing the error? But they say they're optional...
    [ERROR] hsdk-initializeOptional - class ConsentInitializer not found
    [ERROR] hsdk-initializeOptional - class LocationInitializer not found
    

Note

This also happens in any Flutter project I make, but I'm using the official HERE hello_map_app example so its reproducible.

Issue

Using the Flutter here_sdk doesn't work. Specifically, the HERE hello_map_app example only shows a white screen when loading.

I am using the Explore here_sdk. Here is the top of its pubspec.yaml:

name: here_sdk
description: HERE SDK for Flutter
version: 4.21.5
homepage: https://here

I've followed these Getting Started steps meticulously, including ensuring my API keys are correct (I don't get any incorrect credential errors when loading the app).

My System

Flutter/Dart versions:

Flutter 3.29.2 • channel stable • https://github/flutter/flutter.git
Framework • revision c236373904 (9 days ago) • 2025-03-13 16:17:06 -0400
Engine • revision 18b71d647a
Tools • Dart 3.7.2 • DevTools 2.42.3

Development machine:

M1 Macbook Pro 2021, macOS Sequoia 15.1.1

Ran on devices (tested with debug, profile, and release via Flutter run ... and XCode's GUI):

- iOS simulator running iOS 17.5; and
- physical iPhone 15 running iOS 18.3.2.

Error Logs

These are shown when I run it on my iOS simulator via XCode:

[INFO ] Threading - Platform threading is initialized.
[INFO ] ApplicationUtilsInitializer - HERESDK Version 4.21.5
[INFO ] ConnectivityStatusNotifier - Network is reachable
FlutterView implements focusItemsInRect: - caching for linear focus movement is limited as long as this view is on screen.
flutter: The Dart VM service is listening on http://127.0.0.1:55450/ahlySVd0qx8=/
[INFO ] LockingProcess - Neither cache nor persistent map storage is locked
13:25:52.078 [INFO] ThreadPoolTaskScheduler - Starting thread 'OLPSDKPOOL_0'
13:25:52.079 [INFO] ThreadPoolTaskScheduler - Starting thread 'OLPSDKPOOL_1'
13:25:52.079 [INFO] ThreadPoolTaskScheduler - Starting thread 'OLPSDKPOOL_0'
13:25:52.079 [INFO] ThreadPoolTaskScheduler - Starting thread 'OLPSDKPOOL_1'
[INFO ] hsdk-SDKNativeEngineImpl - Creation
[INFO ] hsdk-OfflineAwareNetwork - Changed to OfflineMode=0 AllowedUrls=
[INFO ] hsdk-OfflineAwareNetwork - Changed to OfflineMode=0 AllowedUrls=
[ERROR] hsdk-initializeOptional - class ConsentInitializer not found
[ERROR] hsdk-initializeOptional - class LocationInitializer not found

My Ideas

  • I've already went through every Debugging and Troubleshooting step from their guide. Nothing works.
  • I am quite certain my API keys are correct.
  • I wonder if it could be these lines from the logs causing the error? But they say they're optional...
    [ERROR] hsdk-initializeOptional - class ConsentInitializer not found
    [ERROR] hsdk-initializeOptional - class LocationInitializer not found
    

Note

This also happens in any Flutter project I make, but I'm using the official HERE hello_map_app example so its reproducible.

Share Improve this question asked Mar 22 at 20:47 Matthew TrentMatthew Trent 3,3063 gold badges25 silver badges42 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 2

here_sdk doesn't seem to support Flutter 3.29 yet.

本文标签: