Conflicting native Shared Object (.so) library file - libc++_shared.so

Description
When upgrading from Zoom Android SDK version 5.0.24437.0708 to 5.2.41727.0928 we encountered a Gradle build error:

More than one file was found with OS independent path 'lib/arm64-v8a/libc++_shared.so

One of our app’s library already has this native SO file.

  • Do you have any recommendations on how to solve this?
  • What are the changelogs why this library was added? Previously, libc++_shared.so was not included in the AAR package.
  • Can you specify which version of libc++_shared.so is added so we could decide which of the library we will pick in our Gradle script?
  • Or is there a way for two versions of this library to coincide in our app? such as by renaming the conflicting library in Zoom AAR?

Which version?
5.2.41727.0928

To Reproduce(If applicable)

  1. Import a 3rd party dependency/library/module which includes libc++_shared.so in its package
  2. Make a build
  3. Error in Gradle build.

Screenshots

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeDebugNativeLibs'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > More than one file was found with OS independent path 'lib/arm64-v8a/libc++_shared.so'

Smartphone (please complete the following information):

  • Device: Any Android device
  • OS: Any Android OS version

Additional context
Is there any AAR we can use without the libc++_shared.so?

1 Like

We have the same issue.

Build error can be avoided by using packaging options in Android Gradle Plugin:

android {
  packagingOptions {
    pickFirst 'lib/**/libc++_shared.so'
  }
}

But this is not a reliable solution since we don’t know for sure which version will be picked and whether it’s safe to use this version or not.

For example, ReactNative uses libc++_shared.so too and requires it to have a symbol “__cxa_bad_typeid” which is not the case:

SoLoader: couldn't find DSO to load: libjscexecutor.so caused by: dlopen failed: cannot locate symbol "__cxa_bad_typeid" referenced by ".../lib/x86_64/libjsc.so"

libc++_shared.so from Zoom SDK indeed doesn’t contain the symbol:

$ readelf -sW libc++_shared.so | grep __cxa_bad_typeid
$

But libc++_shared.so from React Native contains the symbol:

$ readelf -sW libc++_shared.so | grep __cxa_bad_typeid
  2062: 00000000000ab8b0    44 FUNC    GLOBAL DEFAULT   12 __cxa_bad_typeid

So in this example AGP is picking libc++_shared.so from Zoom SDK with missing functionality required by React Native.

I’ve fixed the issue for now by repackaging mobilertc.aar with newer libc++_shared.so, but really hope for official fix from the Zoom team.

1 Like

Hi @minyushov and @AnypadDev, thank you for bringing this to our attention.

I will follow up with our team responsible for managing this component of our SDK and get back to you both with more information.

In the meantime, feel free to try out that packaginOptions workaround and let me know if there are any problems with it. If the SDK is not usable with that workaround, the severity of this issue would increase significantly on our end.

Thanks!

Hi @jon.lieblich

Same as what @minyushov replied above, packagingOptions with picking libc++_shared.so from Zoom SDK leads to app crash. Please help packing the SDK a new, complete libc++_shared.so.

Thanks a lot!

020-11-02 12:14:09.196 6578-6578/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1
2020-11-02 12:14:09.197 6578-6578/? A/DEBUG: Cause: null pointer dereference
2020-11-02 12:14:09.197 6578-6578/? A/DEBUG:     x0  0000000000000001  x1  000000723b2e7ab0  x2  0000000000000020  x3  000000723b998d50
2020-11-02 12:14:09.197 6578-6578/? A/DEBUG:     x4  00000073670580e0  x5  0000007367058100  x6  000000723b998e10  x7  000000723b752dc0
2020-11-02 12:14:09.197 6578-6578/? A/DEBUG:     x8  16d74b6a19ca198a  x9  16d74b6a19ca198a  x10 0000000000000005  x11 0000000000000000
2020-11-02 12:14:09.197 6578-6578/? A/DEBUG:     x12 000000723b998de0  x13 000000723b998db0  x14 0000007367059550  x15 0000007367059560
2020-11-02 12:14:09.197 6578-6578/? A/DEBUG:     x16 000000736585e940  x17 00000073657e8380  x18 0000000038806d01  x19 000000725a4b3058
2020-11-02 12:14:09.197 6578-6578/? A/DEBUG:     x20 0000007fd188ad10  x21 0000007fd188acd0  x22 00000072d5d12808  x23 000000725c4a4000
2020-11-02 12:14:09.197 6578-6578/? A/DEBUG:     x24 000000725c4a4000  x25 0000007fd188ae90  x26 0000007fd188ad70  x27 0000007260b8eea0
2020-11-02 12:14:09.197 6578-6578/? A/DEBUG:     x28 0000007fd188ad68  x29 0000007fd188ac40
2020-11-02 12:14:09.197 6578-6578/? A/DEBUG:     sp  0000007fd188ac40  lr  000000725c0eed9c  pc  000000725c0eed84
2020-11-02 12:14:09.854 6578-6578/? A/DEBUG: backtrace:
2020-11-02 12:14:09.854 6578-6578/? A/DEBUG:       #00 pc 000000000025ed84  /data/app/com.example.myapp-VSGGbH8f3-HnpZPkAvZeRg==/lib/arm64/libzWebService.so (BuildId: 67ef84eaf2fe6c6ad51314aebcb2fca23fdcde13)
2020-11-02 12:14:09.854 6578-6578/? A/DEBUG:       #01 pc 0000000000276cf4  /data/app/com.example.myapp-VSGGbH8f3-HnpZPkAvZeRg==/lib/arm64/libzWebService.so (BuildId: 67ef84eaf2fe6c6ad51314aebcb2fca23fdcde13)
2020-11-02 12:14:09.854 6578-6578/? A/DEBUG:       #02 pc 0000000000227840  /data/app/com.example.myapp-VSGGbH8f3-HnpZPkAvZeRg==/lib/arm64/libzWebService.so (BuildId: 67ef84eaf2fe6c6ad51314aebcb2fca23fdcde13)
2020-11-02 12:14:09.854 6578-6578/? A/DEBUG:       #03 pc 000000000013a3e0  /data/app/com.example.myapp-VSGGbH8f3-HnpZPkAvZeRg==/lib/arm64/libzWebService.so (BuildId: 67ef84eaf2fe6c6ad51314aebcb2fca23fdcde13)
2020-11-02 12:14:09.854 6578-6578/? A/DEBUG:       #04 pc 0000000000266e5c  /data/app/com.example.myapp-VSGGbH8f3-HnpZPkAvZeRg==/lib/arm64/libzWebService.so (BuildId: 67ef84eaf2fe6c6ad51314aebcb2fca23fdcde13)
2020-11-02 12:14:09.854 6578-6578/? A/DEBUG:       #05 pc 0000000000010a14  /data/app/com.example.myapp-VSGGbH8f3-HnpZPkAvZeRg==/lib/arm64/libzoom.so (Android_HeartBeat4SingleProcess()+40) (BuildId: 5e86eb0dbc04568bcaa3feb794814e900e7468cc)
2020-11-02 12:14:09.854 6578-6578/? A/DEBUG:       #06 pc 000000000013f350  /apex/com.android.runtime/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.854 6578-6578/? A/DEBUG:       #07 pc 0000000000136334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.854 6578-6578/? A/DEBUG:       #08 pc 0000000000144fec  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.854 6578-6578/? A/DEBUG:       #09 pc 00000000002e2674  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.854 6578-6578/? A/DEBUG:       #10 pc 00000000002dd8d4  /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+892) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.854 6578-6578/? A/DEBUG:       #11 pc 00000000005a1e4c  /apex/com.android.runtime/lib64/libart.so (MterpInvokeDirect+424) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.854 6578-6578/? A/DEBUG:       #12 pc 0000000000130914  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.854 6578-6578/? A/DEBUG:       #13 pc 00000000001d90d8  [anon:dalvik-classes3.dex extracted in memory from /data/app/com.example.myapp-VSGGbH8f3-HnpZPkAvZeRg==/base.apk!classes3.dex] (com.zipow.videobox.mainboard.Mainboard.heartBeatForSDK)
2020-11-02 12:14:09.854 6578-6578/? A/DEBUG:       #14 pc 000000000059fde4  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+1352) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.854 6578-6578/? A/DEBUG:       #15 pc 0000000000130814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.854 6578-6578/? A/DEBUG:       #16 pc 00000000002a74f2  [anon:dalvik-classes3.dex extracted in memory from /data/app/com.example.myapp-VSGGbH8f3-HnpZPkAvZeRg==/base.apk!classes3.dex] (com.zipow.videobox.ptapp.PTApp.dispatchIdleMessage+30)
2020-11-02 12:14:09.855 6578-6578/? A/DEBUG:       #17 pc 000000000059fde4  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+1352) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.855 6578-6578/? A/DEBUG:       #18 pc 0000000000130814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.855 6578-6578/? A/DEBUG:       #19 pc 00000000003ef85a  [anon:dalvik-classes.dex extracted in memory from /data/app/com.example.myapp-VSGGbH8f3-HnpZPkAvZeRg==/base.apk] (com.zipow.videobox.VideoBoxApplication$19.run+66)
2020-11-02 12:14:09.855 6578-6578/? A/DEBUG:       #20 pc 00000000002b3988  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.17460956533834400288+240) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.855 6578-6578/? A/DEBUG:       #21 pc 000000000059108c  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1032) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.855 6578-6578/? A/DEBUG:       #22 pc 000000000013f468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.855 6578-6578/? A/DEBUG:       #23 pc 0000000002194734  /memfd:/jit-cache (deleted) (android.os.Handler.handleCallback+68)
2020-11-02 12:14:09.855 6578-6578/? A/DEBUG:       #24 pc 0000000002194860  /memfd:/jit-cache (deleted) (android.os.Handler.dispatchMessage+64)
2020-11-02 12:14:09.855 6578-6578/? A/DEBUG:       #25 pc 0000000000136334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.855 6578-6578/? A/DEBUG:       #26 pc 0000000000144fec  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.855 6578-6578/? A/DEBUG:       #27 pc 00000000002e2674  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.855 6578-6578/? A/DEBUG:       #28 pc 00000000002dd8d4  /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+892) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.855 6578-6578/? A/DEBUG:       #29 pc 000000000059fb24  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+648) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.855 6578-6578/? A/DEBUG:       #30 pc 0000000000130814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.855 6578-6578/? A/DEBUG:       #31 pc 000000000032595a  /system/framework/framework.jar (android.os.Looper.loop+466)
2020-11-02 12:14:09.855 6578-6578/? A/DEBUG:       #32 pc 00000000005a2894  /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+1040) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.855 6578-6578/? A/DEBUG:       #33 pc 0000000000130994  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.855 6578-6578/? A/DEBUG:       #34 pc 000000000018dbd4  /system/framework/framework.jar (android.app.ActivityThread.main+196)
2020-11-02 12:14:09.855 6578-6578/? A/DEBUG:       #35 pc 00000000002b3988  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.17460956533834400288+240) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.855 6578-6578/? A/DEBUG:       #36 pc 000000000059108c  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1032) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.855 6578-6578/? A/DEBUG:       #37 pc 000000000013f468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.855 6578-6578/? A/DEBUG:       #38 pc 00000000001365b8  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.855 6578-6578/? A/DEBUG:       #39 pc 000000000014500c  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+276) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.855 6578-6578/? A/DEBUG:       #40 pc 00000000004afa90  /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.856 6578-6578/? A/DEBUG:       #41 pc 00000000004b1634  /apex/com.android.runtime/lib64/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+1480) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.856 6578-6578/? A/DEBUG:       #42 pc 000000000043c9d8  /apex/com.android.runtime/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+52) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.856 6578-6578/? A/DEBUG:       #43 pc 00000000000c2c34  /system/framework/arm64/boot.oat (art_jni_trampoline+180) (BuildId: 0aa41bda6b478fe6b64cc2ff974a8c54ab5fe7c1)
2020-11-02 12:14:09.856 6578-6578/? A/DEBUG:       #44 pc 0000000000136334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.856 6578-6578/? A/DEBUG:       #45 pc 0000000000144fec  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.856 6578-6578/? A/DEBUG:       #46 pc 00000000002e2674  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.856 6578-6578/? A/DEBUG:       #47 pc 00000000002dd8d4  /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+892) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.856 6578-6578/? A/DEBUG:       #48 pc 000000000059fb24  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+648) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.856 6578-6578/? A/DEBUG:       #49 pc 0000000000130814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.856 6578-6578/? A/DEBUG:       #50 pc 00000000003524ca  /system/framework/framework.jar (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+22)
2020-11-02 12:14:09.856 6578-6578/? A/DEBUG:       #51 pc 00000000002b3988  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.17460956533834400288+240) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.856 6578-6578/? A/DEBUG:       #52 pc 000000000059108c  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1032) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.856 6578-6578/? A/DEBUG:       #53 pc 000000000013f468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.856 6578-6578/? A/DEBUG:       #54 pc 00000000009be83c  /system/framework/arm64/boot-framework.oat (com.android.internal.os.ZygoteInit.main+2076) (BuildId: 3da7ab21f2de012a717323c8a2250bc3424dc445)
2020-11-02 12:14:09.856 6578-6578/? A/DEBUG:       #55 pc 00000000001365b8  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.856 6578-6578/? A/DEBUG:       #56 pc 000000000014500c  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+276) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.856 6578-6578/? A/DEBUG:       #57 pc 00000000004afa90  /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.856 6578-6578/? A/DEBUG:       #58 pc 00000000004af680  /apex/com.android.runtime/lib64/libart.so (art::InvokeWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+408) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.856 6578-6578/? A/DEBUG:       #59 pc 00000000003ba41c  /apex/com.android.runtime/lib64/libart.so (art::JNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+624) (BuildId: 19632a5dba8aa6ae51ded338216c35ad)
2020-11-02 12:14:09.856 6578-6578/? A/DEBUG:       #60 pc 00000000000c099c  /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+116) (BuildId: fcd313be274f62ccc00addfc686c5b83)
2020-11-02 12:14:09.856 6578-6578/? A/DEBUG:       #61 pc 00000000000c382c  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+776) (BuildId: fcd313be274f62ccc00addfc686c5b83)
2020-11-02 12:14:09.856 6578-6578/? A/DEBUG:       #62 pc 00000000000035b0  /system/bin/app_process64 (main+1376) (BuildId: b37b0ba1daa0a4dfe5092fb9afbc2648)
2020-11-02 12:14:09.856 6578-6578/? A/DEBUG:       #63 pc 000000000007e898  /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+108) (BuildId: cf739dbc84bcc78f7a1500721bfb3758)
1 Like

Hi @AnypadDev, thanks for testing that.

Since this means there is no valid workaround, I will bump up the priority of this problem. Hopefully we should be seeing a fix soon!

Thanks!

Hi @minyushov and @AnypadDev,

After looking into this further, it seems that this is not the sort of issue that we would be able to fix in a future release. Basically, the closest we can get you both to a fix is to have you check which version of libc++_shared is newer and exclude all other versions. The version being used by our SDK is R12b.

I will also see to it that any changes in the version being used in the SDK are documented in our release notes.

Thanks!

Hi, @jon.lieblich Any resolvent on this issue? I keep on facing a build error while generating the bundle apk.

Please let us know when this issue can be resolved?

Error getting in compile time:
Modules 'base' and 'feature' contain entry 'lib/armeabi-v7a/libc++_shared.so' with different content.

Hi, could you please help me in how to solve this particular error?

Hi,

You could try this:

  1. Find a dependency in your project that has libc++_shared.so. In my case it was react-native.aar.
  2. AAR is just a regular zip archive, so you can unpack it and take all libc++_shared.so files.
  3. Unpack mobilertc.aar and replace its libc++_shared.so files with files from step 2.
  4. Now you can zip the result back to mobilertc.aar and use it in your project.
1 Like

Hi @sa159871 (and thanks @minyushov for helping out!),

Please let me know if you are still encountering any issues after trying the steps in the previous reply and I will be happy to help. :slightly_smiling_face:

Thanks!

Hi @jon.lieblich I just followed these steps and still unable to fix it.
Is there any other fix for it?

Hi @haider.saleem, thanks for using the dev forum.

Can you please provide the exact error that you are seeing?

Thanks!

@jon.lieblich Here it is

More than one file was found with OS independent path ‘lib/x86/libc++_shared.so’

@haider.saleem

Please add packagingOptions to the build.gradle of your application module like this:

android {
  ...
  packagingOptions {
    pickFirst 'lib/armeabi-v7a/libc++_shared.so'
    pickFirst 'lib/arm64-v8a/libc++_shared.so'
    pickFirst 'lib/x86/libc++_shared.so'
    pickFirst 'lib/x86_64/libc++_shared.so'
  }
}
1 Like

@minyushov
Thanks but this solution leads to other issue, while using it when I run app it gets crashed.

@minyushov Will you please let me know React-Native version, you are using?

Hi @haider.saleem,

Can you please post the stack trace of the crash you are seeing after trying out the solution provided by @minyushov ?

Thanks!

@haider.saleem
We are using React Native 0.61.5 and 0.63.4.

1 Like

Hi @haider.saleem,

btw, if you are using React Native, the whole process of adding Zoom into RN is documented pretty well in this article from December (from me). There is also separate part for iOS integration + link to repo:

https://stefanmajiros.medium.com/how-to-integrate-zoom-sdk-into-react-native-47492d4e46a6

From first look, I guess you forgot to init the .so library with Soloader.loadLibrary() method (if the app crashes in runtime - this was happening also to me).

1 Like

Hi @majirosstefan ,
Thank you for providing this solution, it worked well.