You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Proguard looks to be stripping out a field needed during launch within MapRenderer causing a crash upon MapLibre init.
To Reproduce
Steps to reproduce the behavior:
Integrate latest 11.5.0 version of MapLibre into an Android app using proguard
Launch app / call into MapLibre.init
NoSuchFieldException thrown
java.lang.NoSuchFieldError: no "J" field "nativePtr" in class "Lorg/maplibre/android/maps/renderer/MapRenderer;" or its superclasses
2024-10-02 10:37:10.420 17036-17036 System.err pid-17036 W at org.maplibre.android.net.NativeConnectivityListener.<clinit>(SourceFile:1)
2024-10-02 10:37:10.420 17036-17036 System.err pid-17036 W at org.maplibre.android.net.b.d(SourceFile:19)
2024-10-02 10:37:10.420 17036-17036 System.err pid-17036 W at org.maplibre.android.MapLibre.c(SourceFile:31)
Expected behavior
No error thrown upon init
Screenshots
N/A
Platform information (please complete the following information):
OS: Android 12
Platform Android
Version 11.5.0
Additional context
Nothing additional to add here, if proguard is not run everything works as expected / no issue is present
The text was updated successfully, but these errors were encountered:
Describe the bug
Proguard looks to be stripping out a field needed during launch within
MapRenderer
causing a crash upon MapLibre init.To Reproduce
Steps to reproduce the behavior:
Expected behavior
No error thrown upon init
Screenshots
N/A
Platform information (please complete the following information):
Additional context
Nothing additional to add here, if proguard is not run everything works as expected / no issue is present
The text was updated successfully, but these errors were encountered: