# Conflicting Shared Object: libc++\_shared.so

**URL:** <https://devforum.zoom.us/t/conflicting-shared-object-libc-shared-so/56234>\
**Category:** Android\
**Created:** [August 22, 2021, 11:20am UTC](https://devforum.zoom.us/t/conflicting-shared-object-libc-shared-so/56234 "2021-08-22T11:20:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![wbaroudi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/wbaroudi/32/30319_2.png) [@wbaroudi](https://devforum.zoom.us/u/wbaroudi)\
**Post date:** [August 22, 2021, 11:20am UTC](https://devforum.zoom.us/t/conflicting-shared-object-libc-shared-so/56234/1 "2021-08-22T11:20:14Z")

</div>

**Description**  
I’m trying to integrate Zoom Video SDK into my application. after following the steps in the “Getting Started” section of the documentation, I faced this error

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

I have looked into the [thread](https://devforum.zoom.us/t/conflicting-native-shared-object-so-library-file-libc-shared-so/34729) discussing this issue and tried all the proposed solutions.  
I have deleted the libc++\_shared.so file from all architecture folders inside mobilertc.aar then tried using SoLoader [as explained](https://devforum.zoom.us/t/conflicting-native-shared-object-so-library-file-libc-shared-so/34729/19).  
In MyApplication:

```auto
   SoLoader.init(this, false)
   SoLoader.loadLibrary("zoom")

```

this reportedly worked for some people in the meeting SDK, but in my case, although the application compiles, I get the following error while trying to load the library using SoLoader

> java.lang.UnsatisfiedLinkError: couldn’t find DSO to load: libzoom.so

Would you happen to have a solution for this? I’d really appreciate that, I have been trying to integrate the SDK for a while now.

note 1: I’m not using react native  
note 2: If I only delete the libc++\_shared.so from mobilertc.aar without using SoLoader I’d get this error

> java.lang.UnsatisfiedLinkError: dlopen failed: library “libcmmlib.so” not found

at `sdk.initialize(this, params)`

**Which Android Video SDK version?**  
v1.1.1 (8665.0812)

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Include the sdk in the project
2. build the project
3. See error

**Smartphone (please complete the following information):**

- Device: All
- OS: All

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [August 23, 2021, 10:38pm UTC](https://devforum.zoom.us/t/conflicting-shared-object-libc-shared-so/56234/2 "2021-08-23T22:38:29Z")

</div>

Hi @wbaroudi, thanks for using our SDK.

Sorry to hear you are also running into this issue. Have you tried the solution proposed in [this response](https://devforum.zoom.us/t/conflicting-native-shared-object-so-library-file-libc-shared-so/34729/14) already?

Thanks!

---

<div class="post-metadata">

**Author:** ![wbaroudi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/wbaroudi/32/30319_2.png) [@wbaroudi](https://devforum.zoom.us/u/wbaroudi)\
**Post date:** [August 24, 2021, 8:33am UTC](https://devforum.zoom.us/t/conflicting-shared-object-libc-shared-so/56234/3 "2021-08-24T08:33:37Z")

</div>

Hi @jon.zoom , thanks for your help!  
Yes, I have tried that solution and I’m afraid it doesn’t work either.  
it gives a much larger error log starting with:

> JNI DETECTED ERROR IN APPLICATION: JNI NewGlobalRef called with pending exception java.lang.ClassNotFoundException: Didn’t find class “us.zoom.net.AndroidNetworkLibrary” on path:…

at `sdk.initialize(this, params)`

would you happen to know the cause of this?

---

<div class="post-metadata">

**Author:** ![ada](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ada/32/26217_2.png) [@ada](https://devforum.zoom.us/u/ada)\
**Post date:** [August 24, 2021, 11:12am UTC](https://devforum.zoom.us/t/conflicting-shared-object-libc-shared-so/56234/4 "2021-08-24T11:12:34Z")

</div>

> [@wbaroudi](#):
>
> ```auto
> SoLoader.init(this, false)
> SoLoader.loadLibrary("zoom")
> 
> ```

I have tried. This willl only work with ZoomSDK. For Zoom Video SDK, it doesn’t work. I haven’t found any solution as welll. Hope that someone could help

---

<div class="post-metadata">

**Author:** ![wbaroudi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/wbaroudi/32/30319_2.png) [@wbaroudi](https://devforum.zoom.us/u/wbaroudi)\
**Post date:** [August 24, 2021, 2:51pm UTC](https://devforum.zoom.us/t/conflicting-shared-object-libc-shared-so/56234/5 "2021-08-24T14:51:59Z")

</div>

Hi @ada We solved the problem. we copied the proguard-rules.pro file from the sample app and it worked.  
add this to the packaging options in your gradle build:

```auto
packagingOptions {
    ...
    pickFirst '**/*.so'
}

```

add these to your proguard rules:

```auto

-keep class us.zoom**{
   *;
}
-keep interface us.zoom**{
   *;
}

-keep class org.webrtc**{
   *;
}

-keep class com.zipow**{
   *;
}

```

this fixed the initialization crash for me.  
good luck!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [August 24, 2021, 6:51pm UTC](https://devforum.zoom.us/t/conflicting-shared-object-libc-shared-so/56234/6 "2021-08-24T18:51:39Z")

</div>

That’s great to hear that this was resolved after adding those proguard rules!

---

<div class="post-metadata">

**Author:** ![ada](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ada/32/26217_2.png) [@ada](https://devforum.zoom.us/u/ada)\
**Post date:** [August 24, 2021, 8:59pm UTC](https://devforum.zoom.us/t/conflicting-shared-object-libc-shared-so/56234/7 "2021-08-24T20:59:45Z")

</div>

Hi @wbaroudi,

I added this in my React native module. I also added SoLoader as below:

```auto
SoLoader.init(this, false)
SoLoader.loadLibrary("zoom_tp")

```

It did help the crash issue, however, it couldn’t initialise the Video SDK and got timeout after few second.  
You have implement this in your React Native project?

---

<div class="post-metadata">

**Author:** ![wbaroudi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/wbaroudi/32/30319_2.png) [@wbaroudi](https://devforum.zoom.us/u/wbaroudi)\
**Post date:** [August 24, 2021, 10:12pm UTC](https://devforum.zoom.us/t/conflicting-shared-object-libc-shared-so/56234/8 "2021-08-24T22:12:49Z")

</div>

Oh no there’s no React Native involved in my case.  
also, I didn’t end up using the SoLoader. So, if you want to try what worked for me, I did the following:

1. Include the SDK as described in the [documentation](https://marketplace.zoom.us/docs/sdk/video/android/getting-started/integrate)
2. do the same steps in my [previous reply](https://devforum.zoom.us/t/conflicting-shared-object-libc-shared-so/56234/5)

No deleting files from mobilertc, no SoLoader, nothing more, nothing less.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [August 26, 2021, 8:47pm UTC](https://devforum.zoom.us/t/conflicting-shared-object-libc-shared-so/56234/9 "2021-08-26T20:47:06Z")

</div>

Hi @ada,

Unfortunately we do not currently support React Native, so we are limited in how much help we can provide with regards to build errors.

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [September 26, 2021, 6:47am UTC](https://devforum.zoom.us/t/conflicting-shared-object-libc-shared-so/56234/10 "2021-09-26T06:47:38Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
