UnsatisfiedLinkError during sdk init
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
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.
The API for above is:
LibraryLoader#setLibraryLoader(LibraryLoader libraryLoader)
@FrancoisBlavoet did you find a way to prevent this from happening? we're experiencing the exact same thing
I'm using Mapbox 6.4.0 and also getting logs of users experiencing same exception.
Same on version 7.0.0 of Mapbox :/
With https://github.com/mapbox/mapbox-gl-native/pull/13974 and thus 7.3.0, we ship relinker as default library loader.
Same issue I am getting with 7.0.7
this isn't an actual issue, see https://github.com/mapbox/mapbox-gl-native/issues/15331#issuecomment-539857586 for more context.
This issue is duplicate and I solved it in #14428