mapbox / mapbox/mapbox-maps-android

MyApplication.onCreate java.lang.UnsatisfiedLinkError - dlopen failed: library "libmapbox-common.so" not found

Open
#2,688 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :beetle:
Dominant language
Kotlin
Stars
578
Forks
161
PR merge metrics
No merged PRs in 30d

Description

`atal Exception: java.lang.ExceptionInInitializerError
com.mapbox.common.MapboxOptionsImpl.setAccessToken (MapboxOptionsImpl.java)
com.mapbox.common.MapboxOptions.setAccessToken (MapboxOptions.kt:23)
com.---.MyApplication.onCreate (MyApplication.kt:72)
android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1189)
android.app.ActivityThread.handleBindApplication (ActivityThread.java:6603)
android.app.ActivityThread.access$1500 (ActivityThread.java:235)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:1916)
android.os.Handler.dispatchMessage (Handler.java:107)
android.os.Looper.loop (Looper.java:225)
android.app.ActivityThread.main (ActivityThread.java:7563)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:539)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:994)`

`java.lang.Runtime.loadLibrary0 (Runtime.java:1067)
java.lang.Runtime.loadLibrary0 (Runtime.java:1007)
java.lang.System.loadLibrary (System.java:1667)
com.mapbox.common.loader.MapboxLibraryLoader.load (MapboxLibraryLoader.kt:19)
com.mapbox.common.CoreInitializer.create (CoreInitializer.kt:98)
com.mapbox.common.CoreInitializer.create (CoreInitializer.kt:12)
androidx.startup.AppInitializer.doInitialize (AppInitializer.java:180)
androidx.startup.AppInitializer.doInitialize (AppInitializer.java:173)
androidx.startup.AppInitializer.doInitialize (AppInitializer.java:138)
androidx.startup.AppInitializer.initializeComponent (AppInitializer.java:117)
com.mapbox.common.BaseMapboxInitializer$Companion.init (BaseMapboxInitializer.kt:242)
com.mapbox.common.BaseMapboxInitializer$Companion.init (BaseMapboxInitializer.kt:114)
com.mapbox.common.BaseMapboxInitializer.init (BaseMapboxInitializer.kt:3)
com.mapbox.common.MapboxOptionsImpl. (MapboxOptionsImpl.java:63)
com.mapbox.common.MapboxOptionsImpl.setAccessToken (MapboxOptionsImpl.java)
com.mapbox.common.MapboxOptions.setAccessToken (MapboxOptions.kt:23)
com.---.MyApplication.onCreate (MyApplication.kt:72)
android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1189)
android.app.ActivityThread.handleBindApplication (ActivityThread.java:6603)
android.app.ActivityThread.access$1500 (ActivityThread.java:235)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:1916)
android.os.Handler.dispatchMessage (Handler.java:107)
android.os.Looper.loop (Looper.java:225)
android.app.ActivityThread.main (ActivityThread.java:7563)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:539)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:994)`

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with MapboxLibraryLoader.kt:19 and CoreInitializer.kt:98, then inspect the application startup call at MyApplication.kt:72. Reproduce the Android startup failure and trace why libmapbox-common.so is unavailable. Done means application initialization completes without the UnsatisfiedLinkError.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.