Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Configuring Mapbox key on Application class crashes on Nexus 5X API level 23 #277

Closed
leocarona opened this issue Mar 15, 2020 · 1 comment

Comments

@leocarona
Copy link

I have noticed this in both my apps.

Using

implementation('com.mapbox.mapboxsdk:mapbox-android-sdk:9.1.0-alpha.1')

My Application class (full code here):

public class MyHitchhikingSpotsApplication extends MultiDexApplication {
    @Override
    public void onCreate() {
        super.onCreate();
        //....
       Mapbox.getInstance(this, getResources().getString(R.string.mapBoxKey));
     }
}

Crash report:

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__)
FATAL EXCEPTION: main
Process: com.myhitchhikingspots, PID: 8300
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__)
at com.mapbox.mapboxsdk.net.NativeConnectivityListener.initialize(Native Method)
at com.mapbox.mapboxsdk.net.NativeConnectivityListener.(NativeConnectivityListener.java:27)
at com.mapbox.mapboxsdk.net.ConnectivityReceiver.instance(ConnectivityReceiver.java:43)
at com.mapbox.mapboxsdk.Mapbox.getInstance(Mapbox.java:67)
at com.myhitchhikingspots.MyHitchhikingSpotsApplication.onCreate(MyHitchhikingSpotsApplication.java:41)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4707)
at android.app.ActivityThread.-wrap1(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

@tobrun
Copy link
Member

tobrun commented Jun 3, 2020

Following up on this in #416

@tobrun tobrun closed this as completed Jun 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants