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
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Enabling Proguard in an android app and trying to create a GeoJson source will result in an app crash with this log:
07-20 14:58:22.380 9325-9325/com.mapbox.services.android.testapp E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.mapbox.services.android.testapp, PID: 9325
java.lang.NoSuchMethodError: no non-static method "Lcom/google/gson/JsonObject;.entrySet()Ljava/util/Set;"
at com.mapbox.mapboxsdk.style.sources.GeoJsonSource.nativeSetFeatureCollection(Native Method)
at com.mapbox.mapboxsdk.style.sources.GeoJsonSource.setGeoJson(Unknown Source:0)
at com.mapbox.mapboxsdk.style.sources.GeoJsonSource.<init>(Unknown Source:7)
at com.mapbox.services.android.testapp.optimizedtrip.OptimizedTripActivity.a(Unknown Source:23)
at com.mapbox.services.android.testapp.optimizedtrip.OptimizedTripActivity.a(Unknown Source:0)
at com.mapbox.services.android.testapp.optimizedtrip.OptimizedTripActivity$1.a(Unknown Source:45)
at d.g$a$1$1.run(Unknown Source:41)
at android.os.Handler.handleCallback(Handler.java:769)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
Seems that we need to include proguard rules for gson, don't see this as a blocker for a 5.1.1 release (end users can include this themselves in meantime). Adding to 5.2.0 milestone.
Enabling Proguard in an android app and trying to create a GeoJson source will result in an app crash with this log:
Code being used:
cc: @tobrun @Guardiola31337
The text was updated successfully, but these errors were encountered: