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.
java.lang.NoSuchMethodError: No static method toHumanReadableAscii(Ljava/lang/String;)Ljava/lang/String; in class Lokhttp3/internal/Util; or its super classes (declaration of 'okhttp3.internal.Util' appears in /data/app/-1/base.apk:classes8.dex)
at com.mapbox.services.android.telemetry.MapboxTelemetry.setUserAgent(MapboxTelemetry.java:315)
at com.mapbox.services.android.telemetry.MapboxTelemetry.initialize(MapboxTelemetry.java:174)
at com.mapbox.services.android.telemetry.MapboxTelemetry.initialize(MapboxTelemetry.java:125)
at com.mapbox.mapboxsdk.Mapbox.getInstance(Mapbox.java:60)
at com.company.MyApplication.onCreate(MyApplication.java:125)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1024)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5403)
at android.app.ActivityThread.-wrap2(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1545)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
It is also a little odd also that this Telemetry initialization takes place even before we get a chance to mark the telemetry as disabled.
I think a strategy might be to copy the Business Logic from okhttp and have it be part of mapbox vs using an internal library method (?)
The text was updated successfully, but these errors were encountered:
@kaushikgopal thank you for flagging this, sad to see that we are using an internal API. I will make sure we update to the latest OkHttp version before next release. To make this happen I followed with tickets in mapbox/mapbox-events-android#69 for our new telemetry implementation (v6.0.0) and mapbox/mapbox-java#726 for our old implementation (v5.5.0, eta this or next week).
I think the telemetry initialization uses an internal method from okhttp (which has now been removed)
Platform: Android
Mapbox SDK version:
5.4.1
Steps to trigger behavior
3.10.0
5.4.1
It is also a little odd also that this Telemetry initialization takes place even before we get a chance to mark the telemetry as disabled.
I think a strategy might be to copy the Business Logic from okhttp and have it be part of mapbox vs using an internal library method (?)
The text was updated successfully, but these errors were encountered: