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 badges1 Answer
Reset to default 2here_sdk
doesn't seem to support Flutter 3.29 yet.
本文标签:
版权声明:本文标题:ios - Flutter HERE maps here_sdk not loading map. White screen only. Happens in all apps, INCLUDING their OFFICIAL here_map_app 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744304160a2599728.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论