flutter-mapbox-gl / maps

A Mapbox GL flutter package for creating custom maps
Other
1.04k stars 503 forks source link

example not showing MyLocation and compass icons on Android 10 device #1281

Closed brand17 closed 1 year ago

brand17 commented 1 year ago

I don't see these icons in User interface widget.

I normally see these icons when building for web.

When I press "enable/disable my location" I see the following message in debug window:

W/Mbgl (23637): {GLThread 198142}[ParseStyle]: Layer 'JBZjjPqH2U_0' has an invalid value for text-font and will not render text. Output values must be contained as literals within the expression.

I see the following warnings when building:

One or more plugins require a higher Android NDK version.
Fix this issue by adding the following to C:\Users\brand17\YandexDisk\Software\flutter\skuter\MapBox\android\app\build.gradle:
android {
  ndkVersion "21.1.6352462"
  ...
}

Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
√  Built build\app\outputs\flutter-apk\app-debug.apk.
D/FlutterLocationService(23637): Creating service.
D/FlutterLocationService(23637): Binding to location service.
Connecting to VM Service at ws://127.0.0.1:64189/S0ONf9uBQ8s=/ws
W/Gralloc3(23637): mapper 3.x is not supported
W/CrashReporter(23637): Root directory doesn't exist
W/TelemetryUtils(23637): java.lang.SecurityException: getDataNetworkTypeForSubscriber
D/NetworkSecurityConfig(23637): No Network Security Config specified, using platform default
W/mapboxglexampl(23637): Accessing hidden field Lsun/misc/Unsafe;->theUnsafe:Lsun/misc/Unsafe; (greylist, reflection, allowed)
W/mapboxglexampl(23637): Accessing hidden method Lsun/misc/Unsafe;->allocateInstance(Ljava/lang/Class;)Ljava/lang/Object; (greylist, reflection, allowed)
I/PlatformViewsController(23637): Hosting view in a virtual display for platform view: 0
W/Gralloc3(23637): allocator 3.x is not supported
V/Mbgl-ConnectivityReceiver(23637): connected - true
I/Mbgl-EGLConfigChooser(23637): In emulator: false
W/Mbgl    (23637): {GLThread 198142}[Android]: MapRenderer::onSurfaceCreated GlyphsRasterizationMode was specified without providing LocalIdeographFontFamily. Switching glyphsRasterizationMode to NoGlyphsRasterizedLocally mode.
I/Mbgl    (23637): {GLThread 198142}[General]: GPU Identifier: Adreno (TM) 506

I changed ndk version as recommended but it didn't help.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

akhilgorantala commented 11 months ago

any fix ? same issue