# Android SDK integration JNI issue

**URL:** <https://devforum.zoom.us/t/android-sdk-integration-jni-issue/75403>\
**Category:** Android\
**Tags:** android\
**Created:** [September 5, 2022, 9:47am UTC](https://devforum.zoom.us/t/android-sdk-integration-jni-issue/75403 "2022-09-05T09:47:10Z")\
**Posts on this page:** 2\
**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:** [September 5, 2022, 9:47am UTC](https://devforum.zoom.us/t/android-sdk-integration-jni-issue/75403/1 "2022-09-05T09:47:10Z")

</div>

In our app 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

- With this the exception throws **libc++\_shared**

**-** 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/libc++\_shared”…  
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)

**-**

1. Shared PReference Null pointer exception,Unable to start activity ComponentInfo{com.xxxx.xxxx/com.zipow.videobox.JoinByURLActivity}: java.lang.NullPointerException: Attempt to invoke interface method ‘android.content.SharedPreferences$Editor android.content.SharedPreferences.edit()’ on a null object reference  
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4035)  
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4201)  
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)  
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)

---

<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:** [October 5, 2022, 7:47pm UTC](https://devforum.zoom.us/t/android-sdk-integration-jni-issue/75403/2 "2022-10-05T19:47:25Z")

</div>

Closed on October 5, 2022, 7:47pm UTC

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