eopeter / flutter_mapbox_navigation

Turn By Turn Navigation for Your Flutter Application
Apache License 2.0
211 stars 177 forks source link

Getting java.lang.UnsatisfiedLinkError while using the package #156

Closed Imperial-lord closed 1 year ago

Imperial-lord commented 2 years ago

I tried running the example on an emulator and received this. The app crashes instantly afterwards.

E[/AndroidRuntime]()( 4345): FATAL EXCEPTION: main
E[/AndroidRuntime]()( 4345): Process: com.example.basic_nav, PID: 4345
E[/AndroidRuntime]()( 4345): java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZN6mapbox6common14OfflineService16registerObserverERKNSt6__ndk110shared_ptrINS0_22OfflineServiceObserverEEE" referenced by "[/data/app/com.example.basic_nav-8LEH7tIikFIJXx40SXRyGA]()==[/lib/arm64/libnavigator-android.so]()"...
eopeter commented 2 years ago

Did you setup the MapBox downloads token per the instruction?

On Feb 9, 2022, at 7:57 AM, AB Satyaprakash @.***> wrote:

 I tried running the example on an emulator and received this. The app crashes instantly afterwards.

E[/AndroidRuntime]()( 4345): FATAL EXCEPTION: main E[/AndroidRuntime]()( 4345): Process: com.example.basic_nav, PID: 4345 E[/AndroidRuntime]()( 4345): java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZN6mapbox6common14OfflineService16registerObserverERKNSt6__ndk110shared_ptrINS0_22OfflineServiceObserverEEE" referenced by "[/data/app/com.example.basic_nav-8LEH7tIikFIJXx40SXRyGA]()==[/lib/arm64/libnavigator-android.so]()"... — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

Imperial-lord commented 2 years ago

I did. Running flutter clean and starting over helped. But now I am getting this -

E/AndroidRuntime( 5234): java.lang.NoClassDefFoundError: Failed resolution of: Lcom/mapbox/navigation/core/fasterroute/FasterRouteObserver;
eopeter commented 1 year ago

Stale issue message