# Libannotate.so Error

**URL:** <https://devforum.zoom.us/t/libannotate-so-error/74638>\
**Category:** Android\
**Created:** [August 22, 2022, 2:03pm UTC](https://devforum.zoom.us/t/libannotate-so-error/74638 "2022-08-22T14:03:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![appgolive.test](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@appgolive.test](https://devforum.zoom.us/u/appgolive.test)\
**Post date:** [August 22, 2022, 2:03pm UTC](https://devforum.zoom.us/t/libannotate-so-error/74638/1 "2022-08-22T14:03:12Z")

</div>

**Description**  
We have integrated new 5.0+ Android Meeting SDK, in the sample app, we were able to initializeSDK successfully, when we are trying to join meeting see below 2 exceptions.

1. JNI layer  
java\_vm\_ext.cc:579] JNI DETECTED ERROR IN APPLICATION: JNI CallIntMethodV called with pending exception java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol “\_\_emutls\_get\_address” referenced by “/data/app/~~6TGQUSNNFDeKGu1\_RghDQg==/com.xxx.xxxx-QPOMuX6bGfZCa83E7FyIFQ==/base.apk!/lib/arm64-v8a/libannotate.so”…  
java\_vm\_ext.cc:579] at void java.lang.Runtime.loadLibrary0(java.lang.ClassLoader, java.lang.Class, java.lang.String) (Runtime.java:1077)  
java\_vm\_ext.cc:579] at void java.lang.Runtime.loadLibrary0(java.lang.Class, java.lang.String) (Runtime.java:998)  
java\_vm\_ext.cc:579] at void java.lang.System.loadLibrary(java.lang.String) (System.java:1656)  
java\_vm\_ext.cc:579] at void com.zipow.videobox.mainboard.module.ZmSdkMainBoard.loadSDKConfAppNativeModules() (:8)  
java\_vm\_ext.cc:579] at void com.zipow.videobox.mainboard.module.ZmSdkMainBoard.createConfAppForSdk(java.lang.String) (:8)  
java\_vm\_ext.cc:579] at void com.zipow.videobox.VideoBoxApplication.initConfAppForSDK(java.lang.String) (:23)  
java\_vm\_ext.cc:579] at int com.zipow.videobox.VideoBoxApplication.startConfServiceForSDK(android.os.Bundle) (:8)  
java\_vm\_ext.cc:579] at int com.zipow.videobox.ptapp.ConfProcessMgr.createConfProcess(java.lang.String) (:13)  
java\_vm\_ext.cc:579] at void com.zipow.videobox.mainboard.Mainboard.notifyUrlActionImpl(java.lang.String) (:-2)  
java\_vm\_ext.cc:579] at void com.zipow.videobox.mainboard.Mainboard.notifyUrlAction(java.lang.String) (:5)

2. Shared PReference Null pointer exception,

**Which Android Meeting SDK version?**  
v5.11.3.7251

- Device: Samsung M30, Pixel 2XL

- OS: [e.g. Android 10, 11]

- The same credentials works fine to initialise the SDK

---

<div class="post-metadata">

**Author:** ![melodyonetwo12](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/melodyonetwo12/32/19235_2.png) [@melodyonetwo12](https://devforum.zoom.us/u/melodyonetwo12)\
**Post date:** [September 15, 2022, 12:08pm UTC](https://devforum.zoom.us/t/libannotate-so-error/74638/2 "2022-09-15T12:08:50Z")

</div>

1st crash is experienced by us as well, please provide any suggestion for that.

---

<div class="post-metadata">

**Author:** ![appgolive.test](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@appgolive.test](https://devforum.zoom.us/u/appgolive.test)\
**Post date:** [September 15, 2022, 1:19pm UTC](https://devforum.zoom.us/t/libannotate-so-error/74638/3 "2022-09-15T13:19:45Z")

</div>

Just to give more details on this

- We have SIP module (pjsua2), which has the JNI libs libc++\_shared, libpjsua2
- When we try to integrate Zoom SDK(mobilertc and commonlib) we are getting compile exception saying

2 files found with path ‘lib/arm64-v8a/libc++\_shared.so’ from inputs:

- pjsua2/build/intermediates/library\_jni/debug/jni/arm64-v8a/libc++\_shared.so
- /mobilertc/build/.transforms/445b8adf65ed1845334c5eaf41712982/transformed/jetified-mobilertc/jni/arm64-v8a/libc++\_shared.so

I tried to use packageOptions pickfirst like below to resolve this

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

```

With this I am able to run the project with this I tried to invoke below

- Initialise Zoom SDK - Success
- When I am trying to join the call

ZoomSDK.getInstance().getMeetingService().joinMeetingWithParams

and the above exception continues

---

<div class="post-metadata">

**Author:** ![michael.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael.zoom/32/37213_2.png) [@michael.zoom](https://devforum.zoom.us/u/michael.zoom)\
**Post date:** [September 15, 2022, 2:37pm UTC](https://devforum.zoom.us/t/libannotate-so-error/74638/4 "2022-09-15T14:37:56Z")

</div>

@appgolive.test @melodyonetwo12 , thanks for bringing this to our attention. We’ll look into this and get back to you shortly.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [September 15, 2022, 2:54pm UTC](https://devforum.zoom.us/t/libannotate-so-error/74638/5 "2022-09-15T14:54:23Z")

</div>

@appgolive.test @melodyonetwo12 ,

Are you seeing this behavior when testing with the sample or only with the integrated application?

---

<div class="post-metadata">

**Author:** ![appgolive.test](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@appgolive.test](https://devforum.zoom.us/u/appgolive.test)\
**Post date:** [September 15, 2022, 4:43pm UTC](https://devforum.zoom.us/t/libannotate-so-error/74638/6 "2022-09-15T16:43:13Z")

</div>

Sample app is working as expected because there is no conflict of the another lib, in my case the SIP lib is using the same lib and zoom using the same.

I tried to bring the SIP lib to the Sample app and the it’s the same issue.

---

<div class="post-metadata">

**Author:** ![appgolive.test](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@appgolive.test](https://devforum.zoom.us/u/appgolive.test)\
**Post date:** [September 20, 2022, 5:50am UTC](https://devforum.zoom.us/t/libannotate-so-error/74638/7 "2022-09-20T05:50:39Z")

</div>

@michael.zoom / @donte.zoom : Is there any update on above issue ?

---

<div class="post-metadata">

**Author:** ![appgolive.test](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@appgolive.test](https://devforum.zoom.us/u/appgolive.test)\
**Post date:** [October 10, 2022, 3:29am UTC](https://devforum.zoom.us/t/libannotate-so-error/74638/8 "2022-10-10T03:29:54Z")

</div>

Any update on this ?

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [October 19, 2022, 3:10pm UTC](https://devforum.zoom.us/t/libannotate-so-error/74638/9 "2022-10-19T15:10:10Z")

</div>

@appgolive.test  
Thank you for following up on this. Can you try to add the SDK required SDK’s required dependencies and see if that resolves the expectation you are seeing? Here a helpful developer forum post on this matter :

> [@Jni detected error in application](https://devforum.zoom.us/t/jni-detected-error-in-application/63736/2):
>
> Hi @andrew.joyce, It sounds like your project may be missing the SDK’s required dependencies. You should be able to resolve this by adding the below dependencies to your mobilertc/build.gradle file. dependencies.add("default","androidx.security:security-crypto:1.1.0-alpha03") dependencies.add("default","com.google.crypto.tink:tink-android:1.5.0") dependencies.add("default","com.google.android.exoplayer:exoplayer-core:2.13.3") dependencies.add("default","com.google.android.exoplayer:exoplayer-u…

---

<div class="post-metadata">

**Author:** ![appgolive.test](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@appgolive.test](https://devforum.zoom.us/u/appgolive.test)\
**Post date:** [October 21, 2022, 3:20am UTC](https://devforum.zoom.us/t/libannotate-so-error/74638/10 "2022-10-21T03:20:49Z")

</div>

@donte.zoom , thats for the response. I m surprised that if the conflict is JNI layer as per the the logs, the regular dependency update mobilertc would solve this issue ?

---

<div class="post-metadata">

**Author:** ![kyle.pearson](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kyle.pearson/32/34419_2.png) [@kyle.pearson](https://devforum.zoom.us/u/kyle.pearson)\
**Post date:** [October 23, 2022, 4:33pm UTC](https://devforum.zoom.us/t/libannotate-so-error/74638/11 "2022-10-23T16:33:35Z")

</div>

I’m currently running into this same issue. Did the above suggestion solve the issue?

---

<div class="post-metadata">

**Author:** ![Concilium](https://avatars.discourse-cdn.com/v4/letter/c/e0b2c6/32.png) [@Concilium](https://devforum.zoom.us/u/Concilium)\
**Post date:** [November 8, 2022, 2:53pm UTC](https://devforum.zoom.us/t/libannotate-so-error/74638/12 "2022-11-08T14:53:33Z")

</div>

This answer solves a different issue (and the dependencies are all present inside mobilertc/build.gradle).

The problem we’re experiencing is that the file **libc++\_shared.so** is included twice (both by zoom and by another library), so if we use the **pickFirst** , the libc++\_shared.so included in mobilertc.aar gets excluded and thus the join meeting can’t happen like this stacktrace shows:

```auto
E/AndroidRuntime(24299): java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol " **__emutls_get_address**" referenced by "/data/app/~~sg86A7GpgPaFNO3sZUpiKw==/xxx-flinoSjPs0QGiOE4wmhpxg==/base.apk!/lib/arm64-v8a/libannotate.so"...
E/AndroidRuntime(24299): at java.lang.Runtime.loadLibrary0(Runtime.java:1087)
E/AndroidRuntime(24299): at java.lang.Runtime.loadLibrary0(Runtime.java:1008)
E/AndroidRuntime(24299): at java.lang.System.loadLibrary(System.java:1664)
E/AndroidRuntime(24299): at com.zipow.videobox.mainboard.module.ZmSdkMainBoard.loadSDKConfAppNativeModules(Unknown Source:43)
E/AndroidRuntime(24299): at com.zipow.videobox.mainboard.module.ZmSdkMainBoard.createConfAppForSdk(Unknown Source:36)
E/AndroidRuntime(24299): at com.zipow.videobox.VideoBoxApplication.initConfAppForSDK(Unknown Source:57)
E/AndroidRuntime(24299): at com.zipow.videobox.VideoBoxApplication.startConfServiceForSDK(Unknown Source:29)
E/AndroidRuntime(24299): at com.zipow.videobox.ptapp.ConfProcessMgr.createConfProcess(Unknown Source:55)
E/AndroidRuntime(24299): at com.zipow.videobox.mainboard.Mainboard.notifyUrlActionImpl(Native Method)
E/AndroidRuntime(24299): at com.zipow.videobox.mainboard.Mainboard.notifyUrlAction(Unknown Source:11)

```

The problem doesn’t happen if we include only the zoom library without other libraries that have the libc++\_shared.so file.

---

<div class="post-metadata">

**Author:** ![appgolive.test](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@appgolive.test](https://devforum.zoom.us/u/appgolive.test)\
**Post date:** [November 9, 2022, 3:36am UTC](https://devforum.zoom.us/t/libannotate-so-error/74638/13 "2022-11-09T03:36:39Z")

</div>

@donte.zoom , thanks for the response. we tried this if we say pick first the other library is not finding the libc++\_shared.so. We need the lib to be available for other lib as well/. Any clue on this ?

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [November 9, 2022, 11:23pm UTC](https://devforum.zoom.us/t/libannotate-so-error/74638/14 "2022-11-09T23:23:22Z")

</div>

@appgolive.test,

Thank you for following up on this. I’ve been tied up with Zoomtopia, but I am looking into this and will get back to you with what I learn.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [November 9, 2022, 11:51pm UTC](https://devforum.zoom.us/t/libannotate-so-error/74638/15 "2022-11-09T23:51:18Z")

</div>

@appgolive.test,

Can you share which build.gradle file you added the packageOptions pickfirst ?

---

<div class="post-metadata">

**Author:** ![appgolive.test](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@appgolive.test](https://devforum.zoom.us/u/appgolive.test)\
**Post date:** [November 10, 2022, 6:15am UTC](https://devforum.zoom.us/t/libannotate-so-error/74638/16 "2022-11-10T06:15:08Z")

</div>

Here is the pickfirst added in build.gradle.

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

```

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [November 10, 2022, 9:07pm UTC](https://devforum.zoom.us/t/libannotate-so-error/74638/17 "2022-11-10T21:07:59Z")

</div>

Thanks @appgolive.test! Looking into this and will share updates as they become available.

---

<div class="post-metadata">

**Author:** ![mieszko4](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mieszko4/32/42962_2.png) [@mieszko4](https://devforum.zoom.us/u/mieszko4)\
**Post date:** [November 13, 2022, 1:33pm UTC](https://devforum.zoom.us/t/libannotate-so-error/74638/18 "2022-11-13T13:33:31Z")

</div>

I have the same problem. The last ZoomSDK that worked for me was `5.10.3.5614`, however, `5.11.0.6883` does not.

@donte.zoom Thnx for looking into this! Looking forward!

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [March 8, 2023, 10:45pm UTC](https://devforum.zoom.us/t/libannotate-so-error/74638/20 "2023-03-08T22:45:38Z")

</div>

@mieszko4 ,

Thank you for posting in the Zoom Developer Forum and sorry for the missed response. Are you still seeing the same behavior? If so, can share a screenshot of any errors message you are seeing?

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [March 8, 2023, 10:45pm UTC](https://devforum.zoom.us/t/libannotate-so-error/74638/21 "2023-03-08T22:45:56Z")

</div>

Opened on March 8, 2023, 10:45pm UTC



[Next page](https://devforum.zoom.us/t/libannotate-so-error/74638.md?page=2)
