Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

couldn't find DSO to load: libmapbox-gl.so #1280

Closed
pglve opened this issue Dec 27, 2019 · 18 comments
Closed

couldn't find DSO to load: libmapbox-gl.so #1280

pglve opened this issue Dec 27, 2019 · 18 comments

Comments

@pglve
Copy link

pglve commented Dec 27, 2019

E/SoLoader: couldn't find DSO to load: libmapbox-gl.so caused by: dlopen failed: "/data/data/im.aa.messager/lib-main/libmapbox-gl.so" has unexpected e_machine: 40 (EM_ARM)
E/Mbgl-LibraryLoader: Failed to load native shared library.
    com.facebook.soloader.SoLoader$WrongAbiError: APK was built for a different platform
        at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:645)
        at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:577)
        at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:525)
        at com.mapbox.mapboxsdk.module.loader.LibraryLoaderProviderImpl$SoLibraryLoader.load(LibraryLoaderProviderImpl.java:42)
        at com.mapbox.mapboxsdk.LibraryLoader.load(LibraryLoader.java:43)
        at com.mapbox.mapboxsdk.net.NativeConnectivityListener.<clinit>(NativeConnectivityListener.java:13)
        at com.mapbox.mapboxsdk.net.ConnectivityReceiver.instance(ConnectivityReceiver.java:43)
        at com.mapbox.mapboxsdk.Mapbox.getInstance(Mapbox.java:67)
        at im.yai.message.mvp.ui.fragment.MapBoxFragment.onCreate(MapBoxFragment.java:79)
        at android.support.v4.app.Fragment.performCreate(Fragment.java:2414)
        at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1418)
        at android.support.v4.app.FragmentTransition.addToFirstInLastOut(FragmentTransition.java:1195)
        at android.support.v4.app.FragmentTransition.calculateFragments(FragmentTransition.java:1078)
        at android.support.v4.app.FragmentTransition.startTransitions(FragmentTransition.java:117)
        at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2408)
        at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2366)
        at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2273)
        at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:733)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6669)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
     Caused by: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libmapbox-gl.so caused by: dlopen failed: "/data/data/im.aa.messager/lib-main/libmapbox-gl.so" has unexpected e_machine: 40 (EM_ARM)
        at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:789)
        at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:639)
        at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:577) 
        at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:525) 
        at com.mapbox.mapboxsdk.module.loader.LibraryLoaderProviderImpl$SoLibraryLoader.load(LibraryLoaderProviderImpl.java:42) 
        at com.mapbox.mapboxsdk.LibraryLoader.load(LibraryLoader.java:43) 
        at com.mapbox.mapboxsdk.net.NativeConnectivityListener.<clinit>(NativeConnectivityListener.java:13) 
        at com.mapbox.mapboxsdk.net.ConnectivityReceiver.instance(ConnectivityReceiver.java:43) 
        at com.mapbox.mapboxsdk.Mapbox.getInstance(Mapbox.java:67) 
        at im.yai.message.mvp.ui.fragment.MapBoxFragment.onCreate(MapBoxFragment.java:79) 
        at android.support.v4.app.Fragment.performCreate(Fragment.java:2414) 
        at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1418) 
        at android.support.v4.app.FragmentTransition.addToFirstInLastOut(FragmentTransition.java:1195) 
        at android.support.v4.app.FragmentTransition.calculateFragments(FragmentTransition.java:1078) 
        at android.support.v4.app.FragmentTransition.startTransitions(FragmentTransition.java:117) 
        at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2408) 
        at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2366) 
        at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2273) 
        at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:733) 
        at android.os.Handler.handleCallback(Handler.java:873) 
        at android.os.Handler.dispatchMessage(Handler.java:99) 
        at android.os.Looper.loop(Looper.java:193) 
        at android.app.ActivityThread.main(ActivityThread.java:6669) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) 
@Novajox
Copy link

Novajox commented Apr 16, 2020

Hello guys I also have this error. I upgraded my version of

implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:8.1.0'
implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-places-v8:0.9.0'

to

implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:9.1.0'
implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-places-v9:0.11.0'

and that crashes at start up .

Any idea on this error?

@langsmith
Copy link
Contributor

@Novajox , you're getting the same crash as the one in the comment above yours? If not, what's the message in your logcat during the crash?

Try uninstalling the app from your device and also clearing the Android Studio cache. Go to File > Invalidate Caches / Restart in Android Studio.

@Novajox
Copy link

Novajox commented Apr 20, 2020

Hello @langsmith
I have invalidated caches/ restarted.

Here is the log (when I start the activity which contains a map, and it works perfectly on 8.1)

2020-04-20 17:31:12.641 12386-12532/novajox.io.beauxbloc E/libc++abi: terminating with uncaught exception of type jni::PendingJavaException    
    --------- beginning of crash
2020-04-20 17:31:12.641 12386-12532/novajox.io.beauxbloc A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 12532 (OnlineFileSourc), pid 12386 (ox.io.beauxbloc)
2020-04-20 17:31:12.702 12562-12562/? E/DEBUG: failed to readlink /proc/12532/fd/150: No such file or directory
2020-04-20 17:31:12.760 12562-12562/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2020-04-20 17:31:12.760 12562-12562/? A/DEBUG: Build fingerprint: 'google/blueline/blueline:10/QQ2A.200405.005/6254899:user/release-keys'
2020-04-20 17:31:12.760 12562-12562/? A/DEBUG: Revision: 'MP1.0'
2020-04-20 17:31:12.760 12562-12562/? A/DEBUG: ABI: 'arm64'
2020-04-20 17:31:12.766 12562-12562/? A/DEBUG: Timestamp: 2020-04-20 17:31:12+0200
2020-04-20 17:31:12.766 12562-12562/? A/DEBUG: pid: 12386, tid: 12532, name: OnlineFileSourc  >>> novajox.io.beauxbloc <<<
2020-04-20 17:31:12.766 12562-12562/? A/DEBUG: uid: 10425
2020-04-20 17:31:12.766 12562-12562/? A/DEBUG: signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
2020-04-20 17:31:12.766 12562-12562/? A/DEBUG: Abort message: 'terminating with uncaught exception of type jni::PendingJavaException'
2020-04-20 17:31:12.766 12562-12562/? A/DEBUG:     x0  0000000000000000  x1  00000000000030f4  x2  0000000000000006  x3  0000007e81df8010
2020-04-20 17:31:12.766 12562-12562/? A/DEBUG:     x4  fefeff6d6e68736f  x5  fefeff6d6e68736f  x6  fefeff6d6e68736f  x7  7f7f7f7f7f7f7f7f
2020-04-20 17:31:12.766 12562-12562/? A/DEBUG:     x8  00000000000000f0  x9  d9f1fa9636e702ef  x10 0000000000000001  x11 0000000000000000
2020-04-20 17:31:12.766 12562-12562/? A/DEBUG:     x12 fffffff0fffffbdf  x13 0000000000000018  x14 0000065019ac43ee  x15 00260dcfc2c304cb
2020-04-20 17:31:12.766 12562-12562/? A/DEBUG:     x16 0000007f147f68c0  x17 0000007f147d40c0  x18 0000007e21244000  x19 0000000000003062
2020-04-20 17:31:12.766 12562-12562/? A/DEBUG:     x20 00000000000030f4  x21 00000000ffffffff  x22 ffffff80ffffffc8  x23 0000007e81df8260
2020-04-20 17:31:12.766 12562-12562/? A/DEBUG:     x24 0000007e81df8140  x25 0000007e81df8180  x26 0000007e85e43180  x27 0000007ddba7d308
2020-04-20 17:31:12.766 12562-12562/? A/DEBUG:     x28 0000007e81df9020  x29 0000007e81df80b0
2020-04-20 17:31:12.766 12562-12562/? A/DEBUG:     sp  0000007e81df7ff0  lr  0000007f14788f48  pc  0000007f14788f74
2020-04-20 17:31:12.767 12562-12562/? A/DEBUG: backtrace:
2020-04-20 17:31:12.767 12562-12562/? A/DEBUG:       #00 pc 0000000000081f74  /apex/com.android.runtime/lib64/bionic/libc.so (abort+160) (BuildId: 8de865099c99977483c8947f9b7937e9)
2020-04-20 17:31:12.768 12562-12562/? A/DEBUG:       #01 pc 00000000002e3df4  /data/app/novajox.io.beauxbloc-SXeHFjM6yFbvdoR-5aZGaw==/lib/arm64/libmapbox-gl.so (BuildId: 980ac71743367a134a958880e67d32f69eb7de18)
2020-04-20 17:31:12.768 12562-12562/? A/DEBUG:       #02 pc 00000000002e3f64  /data/app/novajox.io.beauxbloc-SXeHFjM6yFbvdoR-5aZGaw==/lib/arm64/libmapbox-gl.so (BuildId: 980ac71743367a134a958880e67d32f69eb7de18)
2020-04-20 17:31:12.768 12562-12562/? A/DEBUG:       #03 pc 00000000002e1414  /data/app/novajox.io.beauxbloc-SXeHFjM6yFbvdoR-5aZGaw==/lib/arm64/libmapbox-gl.so (BuildId: 980ac71743367a134a958880e67d32f69eb7de18)
2020-04-20 17:31:12.768 12562-12562/? A/DEBUG:       #04 pc 00000000002e0b18  /data/app/novajox.io.beauxbloc-SXeHFjM6yFbvdoR-5aZGaw==/lib/arm64/libmapbox-gl.so (BuildId: 980ac71743367a134a958880e67d32f69eb7de18)
2020-04-20 17:31:12.768 12562-12562/? A/DEBUG:       #05 pc 00000000002e0a98  /data/app/novajox.io.beauxbloc-SXeHFjM6yFbvdoR-5aZGaw==/lib/arm64/libmapbox-gl.so (__cxa_throw+120) (BuildId: 980ac71743367a134a958880e67d32f69eb7de18)
2020-04-20 17:31:12.768 12562-12562/? A/DEBUG:       #06 pc 0000000000074d34  /data/app/novajox.io.beauxbloc-SXeHFjM6yFbvdoR-5aZGaw==/lib/arm64/libmapbox-gl.so (BuildId: 980ac71743367a134a958880e67d32f69eb7de18)
2020-04-20 17:31:12.768 12562-12562/? A/DEBUG:       #07 pc 000000000020d0dc  /data/app/novajox.io.beauxbloc-SXeHFjM6yFbvdoR-5aZGaw==/lib/arm64/libmapbox-gl.so (BuildId: 980ac71743367a134a958880e67d32f69eb7de18)
2020-04-20 17:31:12.768 12562-12562/? A/DEBUG:       #08 pc 00000000000be430  /data/app/novajox.io.beauxbloc-SXeHFjM6yFbvdoR-5aZGaw==/lib/arm64/libmapbox-gl.so (BuildId: 980ac71743367a134a958880e67d32f69eb7de18)
2020-04-20 17:31:12.768 12562-12562/? A/DEBUG:       #09 pc 00000000000be350  /data/app/novajox.io.beauxbloc-SXeHFjM6yFbvdoR-5aZGaw==/lib/arm64/libmapbox-gl.so (BuildId: 980ac71743367a134a958880e67d32f69eb7de18)
2020-04-20 17:31:12.768 12562-12562/? A/DEBUG:       #10 pc 0000000000093ef8  /data/app/novajox.io.beauxbloc-SXeHFjM6yFbvdoR-5aZGaw==/lib/arm64/libmapbox-gl.so (BuildId: 980ac71743367a134a958880e67d32f69eb7de18)
2020-04-20 17:31:12.768 12562-12562/? A/DEBUG:       #11 pc 0000000000093760  /data/app/novajox.io.beauxbloc-SXeHFjM6yFbvdoR-5aZGaw==/lib/arm64/libmapbox-gl.so (BuildId: 980ac71743367a134a958880e67d32f69eb7de18)
2020-04-20 17:31:12.768 12562-12562/? A/DEBUG:       #12 pc 00000000000bf43c  /data/app/novajox.io.beauxbloc-SXeHFjM6yFbvdoR-5aZGaw==/lib/arm64/libmapbox-gl.so (BuildId: 980ac71743367a134a958880e67d32f69eb7de18)
2020-04-20 17:31:12.768 12562-12562/? A/DEBUG:       #13 pc 00000000000e10a0  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: 8de865099c99977483c8947f9b7937e9)
2020-04-20 17:31:12.768 12562-12562/? A/DEBUG:       #14 pc 0000000000083ab0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 8de865099c99977483c8947f9b7937e9)
2020-04-20 17:31:13.422 1016-1016/? E//system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_03
2020-04-20 17:31:13.510 1470-11317/? E/libc: Access denied finding property "vendor.debug.egl.changepixelformat"
2020-04-20 17:31:13.525 1470-11317/? E/libc: Access denied finding property "vendor.debug.egl.swapinterval"
2020-04-20 17:31:13.530 1470-1937/? E/InputDispatcher: channel 'b41bb08 novajox.io.beauxbloc/novajox.io.beauxbloc.routes.zone_selection.ZoneSelectionView (server)' ~ Channel is unrecoverably broken and will be disposed!
2020-04-20 17:31:13.530 1470-11317/? E/libc: Access denied finding property "vendor.debug.egl.swapinterval"
2020-04-20 17:31:13.543 1470-1937/? E/InputDispatcher: channel '40a5cef novajox.io.beauxbloc/novajox.io.beauxbloc.routes.main.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
2020-04-20 17:31:13.603 12580-12580/? E/ox.io.beauxblo: Unknown bits set in runtime_flags: 0x8000
2020-04-20 17:31:13.613 5961-5961/? E/memtrack: Couldn't load memtrack module
2020-04-20 17:31:13.629 17521-17521/? E/memtrack: Couldn't load memtrack module
2020-04-20 17:31:15.461 12580-12698/novajox.io.beauxbloc E/libc: Access denied finding property "vendor.gralloc.disable_ahardware_buffer"

@AAverin
Copy link

AAverin commented Apr 28, 2020

I started getting the same exception all of the sudden. I was not updating any mapbox versions, which is odd, no idea where is this coming from.

D/SoLoader( 2519): init finish: 4 SO sources prepared
D/SoLoader( 2519): init exiting
D/SoLoader( 2519): About to load: libmapbox-gl.so
D/SoLoader( 2519): libmapbox-gl.so not found on /data/data/co.photohound/lib-main
D/SoLoader( 2519): libmapbox-gl.so not found on /data/app/co.photohound-CWTAEuUiGk3Fgzg3VhqpKg==/lib/x86
D/SoLoader( 2519): libmapbox-gl.so not found on /vendor/lib
D/SoLoader( 2519): libmapbox-gl.so not found on /system/lib
E/SoLoader( 2519): couldn't find DSO to load: libmapbox-gl.so
E/Mbgl-LibraryLoader( 2519): Failed to load native shared library.
E/Mbgl-LibraryLoader( 2519): java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libmapbox-gl.so
E/Mbgl-LibraryLoader( 2519): 	at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:789)
E/Mbgl-LibraryLoader( 2519): 	at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:639)
E/Mbgl-LibraryLoader( 2519): 	at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:577)
E/Mbgl-LibraryLoader( 2519): 	at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:525)
E/Mbgl-LibraryLoader( 2519): 	at com.mapbox.mapboxsdk.module.loader.LibraryLoaderProviderImpl$SoLibraryLoader.load(LibraryLoaderProviderImpl.java:42)
E/Mbgl-LibraryLoader( 2519): 	at com.mapbox.mapboxsdk.LibraryLoader.load(LibraryLoader.java:43)
E/Mbgl-LibraryLoader( 2519): 	at com.mapbox.mapboxsdk.net.NativeConnectivityListener.<clinit>(NativeConnectivityListener.java:13)
E/Mbgl-LibraryLoader( 2519): 	at com.mapbox.mapboxsdk.net.ConnectivityReceiver.instance(ConnectivityReceiver.java:43)
E/Mbgl-LibraryLoader( 2519): 	at com.mapbox.mapboxsdk.Mapbox.getInstance(Mapbox.java:67)
E/Mbgl-LibraryLoader( 2519): 	at com.mapbox.mapboxgl.MapboxMapController.<init>(MapboxMapController.java:128)
E/Mbgl-LibraryLoader( 2519): 	at com.mapbox.mapboxgl.MapboxMapBuilder.build(MapboxMapBuilder.java:33)
E/Mbgl-LibraryLoader( 2519): 	at com.mapbox.mapboxgl.MapboxMapFactory.create(MapboxMapFactory.java:37)
E/Mbgl-LibraryLoader( 2519): 	at io.flutter.plugin.platform.SingleViewPresentation.onCreate(SingleViewPresentation.java:174)
E/Mbgl-LibraryLoader( 2519): 	at android.app.Dialog.dispatchOnCreate(Dialog.java:421)
E/Mbgl-LibraryLoader( 2519): 	at android.app.Dialog.show(Dialog.java:315)
E/Mbgl-LibraryLoader( 2519): 	at android.app.Presentation.show(Presentation.java:250)
E/Mbgl-LibraryLoader( 2519): 	at io.flutter.plugin.platform.VirtualDisplayController.<init>(VirtualDisplayController.java:93)
E/Mbgl-LibraryLoader( 2519): 	at io.flutter.plugin.platform.VirtualDisplayController.create(VirtualDisplayController.java:53)
E/Mbgl-LibraryLoader( 2519): 	at io.flutter.plugin.platform.PlatformViewsController$1.createPlatformView(PlatformViewsController.java:105)
E/Mbgl-LibraryLoader( 2519): 	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:96)
E/Mbgl-LibraryLoader( 2519): 	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:60)
E/Mbgl-LibraryLoader( 2519): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:231)
E/Mbgl-LibraryLoader( 2519): 	at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:93)
E/Mbgl-LibraryLoader( 2519): 	at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:642)
E/Mbgl-LibraryLoader( 2519): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/Mbgl-LibraryLoader( 2519): 	at android.os.MessageQueue.next(MessageQueue.java:336)
E/Mbgl-LibraryLoader( 2519): 	at android.os.Looper.loop(Looper.java:174)
E/Mbgl-LibraryLoader( 2519): 	at android.app.ActivityThread.main(ActivityThread.java:7356)
E/Mbgl-LibraryLoader( 2519): 	at java.lang.reflect.Method.invoke(Native Method)
E/Mbgl-LibraryLoader( 2519): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
E/Mbgl-LibraryLoader( 2519): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

@AAverin
Copy link

AAverin commented Apr 28, 2020

Ok, looks like it's caused by 8.5.0 update

@mrfaa
Copy link

mrfaa commented Apr 29, 2020

@AAverin do you have the mavenCentral() repository in the allprojects part in the build.gradle file?

@AAverin
Copy link

AAverin commented Apr 29, 2020

@mrfaa I think only google and jCenter

@mrfaa
Copy link

mrfaa commented Apr 29, 2020

maybe you can try adding mavenCentral(). Does that fix your issue?

@AAverin
Copy link

AAverin commented Apr 29, 2020

I don't think it's related. I experience issue in flutter wrapper around mapbox and pretty sure internally everything is setup correctly

@Chaoba
Copy link
Contributor

Chaoba commented Apr 30, 2020

Please refer to mapbox/mapbox-gl-native-android#111 (comment)

@Novajox
Copy link

Novajox commented May 5, 2020

Please refer to mapbox/mapbox-gl-native-android#111 (comment)

LibraryLoader.setLibraryLoader(new LibraryLoader() {
@OverRide
public void load(String name) {
System.loadLibrary(name);
}
});

worked for me on 9.1.0

Thank you very much

@langsmith
Copy link
Contributor

Closing because we've got remedies for this error message:

@AAverin
Copy link

AAverin commented May 5, 2020

@langsmith invalidate cache will not help because it's a bug in SoLoader that was fixed some time ago. MapBox SDK should update it's dependencies and release a new version

@Prajun2010
Copy link

Prajun2010 commented May 30, 2021

Resolved those issues by implementing this step in a flutter project. Might work for you too.
Add packagingOption in android>app>build.gradle

Screenshot 2021-05-31 011018

packagingOptions {
pickFirst '/armeabi-v7a/libmapbox-gl.so'
pickFirst '
/x86/libmapbox-gl.so'
pickFirst '/arm64-v8a/libmapbox-gl.so'
pickFirst '
/x86_64/libmapbox-gl.so'
pickFirst '**/x86/libmapbox-gl.so'
}

@prasid444
Copy link

Resolved those issues by implementing this step in a flutter project. Might work for you too.
Add packagingOption in android>app>build.gradle

Screenshot 2021-05-31 011018

packagingOptions {
pickFirst '/armeabi-v7a/libmapbox-gl.so' pickFirst '/x86/libmapbox-gl.so'
pickFirst '/arm64-v8a/libmapbox-gl.so' pickFirst '/x86_64/libmapbox-gl.so'
pickFirst '**/x86/libmapbox-gl.so'
}

This worked for me. Thank you. I had set aside this project after working for 40+ hours fixing this issue with no result.

@nouhoum-ibrahim-traore
Copy link

Resolved those issues by implementing this step in a flutter project. Might work for you too.
Add packagingOption in android>app>build.gradle

Screenshot 2021-05-31 011018

packagingOptions {
pickFirst '/armeabi-v7a/libmapbox-gl.so' pickFirst '/x86/libmapbox-gl.so'
pickFirst '/arm64-v8a/libmapbox-gl.so' pickFirst '/x86_64/libmapbox-gl.so'
pickFirst '**/x86/libmapbox-gl.so'
}

Thank you so much. This worked for me too. May God bless you

@Prajun2010
Copy link

Prajun2010 commented Jul 26, 2021 via email

@Prajun2010
Copy link

Prajun2010 commented Jul 26, 2021 via email

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

9 participants