mapbox-gl-native icon indicating copy to clipboard operation
mapbox-gl-native copied to clipboard

UnsatisfiedLinkError during sdk init

Open FrancoisBlavoet opened this issue 8 years ago • 9 comments

Platform: Android, Galaxy J7(2016) Mapbox SDK version: Mapbox/5.4.1

Steps to trigger behavior

Some of our users are encountering the following crash : Fatal Exception: java.lang.UnsatisfiedLinkError No implementation found for void com.mapbox.mapboxsdk.net.NativeConnectivityListener.initialize() (tried Java_com_mapbox_mapboxsdk_net_NativeConnectivityListener_initialize and Java_com_mapbox_mapboxsdk_net_NativeConnectivityListener_initialize__)

On our end, it is triggered by Mapbox.getInstance(). Unfortunately we can't really do anything to prevent this internal error

FrancoisBlavoet avatar Mar 06 '18 02:03 FrancoisBlavoet

Thank you for the report, sadly this issue is not actionable for us as something during installation or loading of the native library went wrong. That being said, with the upcoming 6.0.0 release we are allowing to change the component responsible for loading the native library. This will allow to change the platform default way of loading so files with something as Relinker or SOLoader and could potentially make loading of so files more robust.

tobrun avatar Mar 06 '18 11:03 tobrun

The API for above is:

LibraryLoader#setLibraryLoader(LibraryLoader libraryLoader)

tobrun avatar Mar 06 '18 11:03 tobrun

@FrancoisBlavoet did you find a way to prevent this from happening? we're experiencing the exact same thing

cpienovi avatar Oct 25 '18 12:10 cpienovi

I'm using Mapbox 6.4.0 and also getting logs of users experiencing same exception.

leocarona avatar Apr 26 '19 17:04 leocarona

Same on version 7.0.0 of Mapbox :/

Ajojo44 avatar May 07 '19 10:05 Ajojo44

With https://github.com/mapbox/mapbox-gl-native/pull/13974 and thus 7.3.0, we ship relinker as default library loader.

tobrun avatar May 08 '19 20:05 tobrun

Same issue I am getting with 7.0.7

subodhsri avatar Oct 25 '19 08:10 subodhsri

this isn't an actual issue, see https://github.com/mapbox/mapbox-gl-native/issues/15331#issuecomment-539857586 for more context.

tobrun avatar Oct 25 '19 08:10 tobrun

This issue is duplicate and I solved it in #14428

caovanthanh203 avatar Feb 13 '20 17:02 caovanthanh203