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 was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Many Fatal Exception: java.lang.UnsatisfiedLinkError #14428
I have just added crashlytics to my app and I got this new error from the sdk : 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__)
Are you using any kind of abi split configuration? which packaging format are you using? Are you using any other native libraries yourself or through dependencies? How many percent of users are impacted?
note that you are able to replace the native library loader by any your own choice with LibraryLoader#setLibraryLoader
But some device will find Mapbox class in wrong path, example it find in folder "armeabi", because this folder not exists so UnsatisfiedLinkError will be throw.
Have to solve?
You have to tell to device that it should find Mapbox lib in there folders:
Activity
[-]Fatal Exception: java.lang.UnsatisfiedLinkError[/-][+]Many Fatal Exception: java.lang.UnsatisfiedLinkError[/+]tobrun commentedon Apr 16, 2019
This could potentially come from mismatching dependency versions.
Below a list of the dependencies that match versions:
Would you be able to test with this setup?
ben-j69 commentedon Apr 17, 2019
I will try it but before to go live it will take 2 weeks
ben-j69 commentedon May 2, 2019
Hello @tobrun
I use your configuration and now I have this error
com.getkeepsafe.relinker.ApkLibraryInstaller.installLibrary (ApkLibraryInstaller.java:128) com.getkeepsafe.relinker.ReLinkerInstance.loadLibraryInternal (ReLinkerInstance.java:180) com.getkeepsafe.relinker.ReLinkerInstance.loadLibrary (ReLinkerInstance.java:136) com.getkeepsafe.relinker.ReLinkerInstance.loadLibrary (ReLinkerInstance.java:92) com.mapbox.mapboxsdk.module.loader.LibraryLoaderProviderImpl$ReLinkerLibraryLoader.load (LibraryLoaderProviderImpl.java:38) com.mapbox.mapboxsdk.LibraryLoader.load (LibraryLoader.java:43) com.mapbox.mapboxsdk.net.NativeConnectivityListener. (NativeConnectivityListener.java:1) com.mapbox.mapboxsdk.net.ConnectivityReceiver.instance (ConnectivityReceiver.java:43) com.mapbox.mapboxsdk.Mapbox.getInstance (Mapbox.java:60)ben-j69 commentedon Sep 18, 2019
Hello I still have this error it is not satisfying at all
tobrun commentedon Sep 18, 2019
Are you using any kind of abi split configuration? which packaging format are you using? Are you using any other native libraries yourself or through dependencies? How many percent of users are impacted?
note that you are able to replace the native library loader by any your own choice with
LibraryLoader#setLibraryLoaderben-j69 commentedon Sep 18, 2019
I don't think I am using any abi split configuration. Do you have more infos ?
I am using app bundles.
I have other native libs like bugsnag for example.
Around 1% of my user have this error, this is the most common error in my app and it is why I really need to fix it.
caovanthanh203 commentedon Feb 13, 2020
@ben-j69
Because Mapbox only has 4 lib folder is:
You can see in APK analyze:
https://i.ibb.co/zXyjwjD/Screenshot-from-2020-02-14-00-31-08.png
But some device will find Mapbox class in wrong path, example it find in folder "armeabi", because this folder not exists so UnsatisfiedLinkError will be throw.
Have to solve?
You have to tell to device that it should find Mapbox lib in there folders:
by add filter to build.gradle in app module:
in some case you also have to add this line to file gradle.propertise :
Notes: I see that some device x86 only run well when set to:
so I think we should built multi apk abi
ben-j69 commentedon Feb 26, 2020
On circle CI, updating from mapbox 8.4.0 to version 9.0.0 I had to add
ndk { abiFilters "x86" }to make it work, thanks.
GrEg00z commentedon Jan 26, 2021
I confirm the solution given by @bc67da8d works with this config :
implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:6.1.3'Only needed to add in app.gradle :
My source code is from Nativescript app, with the following conf :
Lizzergas commentedon Oct 13, 2022
I am getting the same error with
implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:9.0.0'No additional dependencies are used for mapbox.
Previous version worked on 8.0.1