# ZoomVideoSDK Init Crash

**URL:** <https://devforum.zoom.us/t/zoomvideosdk-init-crash/106001>\
**Category:** Video SDK\
**Tags:** video-sdk\
**Created:** [March 18, 2024, 8:30pm UTC](https://devforum.zoom.us/t/zoomvideosdk-init-crash/106001 "2024-03-18T20:30:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lourebimbas](https://avatars.discourse-cdn.com/v4/letter/l/f0a364/32.png) [@lourebimbas](https://devforum.zoom.us/u/lourebimbas)\
**Post date:** [March 18, 2024, 8:30pm UTC](https://devforum.zoom.us/t/zoomvideosdk-init-crash/106001/1 "2024-03-18T20:30:06Z")

</div>

I am integrating the Video SDK into an existing android app that contains OpenCV functionality using the NDK.  
When calling “ZoomVideoSDK.getInstance().initialize” the app crashes immediately.  
Please view the tombstone below

```auto
 #01 pc 00000000002d3528 /data/app/~~2DxjX7AILInujhic-k36Zg==/com.att.amvots-vbrT6FMllWHxsjxJQnoNQg==/base.apk!libnative-lib.so (offset 0x3a3000) (BuildId: 837c1801ec7ac6126dc881d838048ba6e4b05986)
2024-03-18 16:08:50.508 13055-13055 DEBUG pid-13055 A #02 pc 00000000002d3750 /data/app/~~2DxjX7AILInujhic-k36Zg==/com.att.amvots-vbrT6FMllWHxsjxJQnoNQg==/base.apk!libnative-lib.so (offset 0x3a3000) (BuildId: 837c1801ec7ac6126dc881d838048ba6e4b05986)
2024-03-18 16:08:50.508 13055-13055 DEBUG pid-13055 A #03 pc 00000000000e3c5c /data/app/~~2DxjX7AILInujhic-k36Zg==/com.att.amvots-vbrT6FMllWHxsjxJQnoNQg==/base.apk!libc++_shared.so (offset 0x8d04000) (BuildId: fcc246cbb373c5edee634b117c4b4564cc9becf3)
2024-03-18 16:08:50.508 13055-13055 DEBUG pid-13055 A #04 pc 00000000000e3bf4 /data/app/~~2DxjX7AILInujhic-k36Zg==/com.att.amvots-vbrT6FMllWHxsjxJQnoNQg==/base.apk!libc++_shared.so (offset 0x8d04000) (std::terminate()+56) (BuildId: fcc246cbb373c5edee634b117c4b4564cc9becf3)
2024-03-18 16:08:50.508 13055-13055 DEBUG pid-13055 A #05 pc 000000000008ff14 /data/app/~~2DxjX7AILInujhic-k36Zg==/com.att.amvots-vbrT6FMllWHxsjxJQnoNQg==/base.apk!libcmmlib.so (offset 0xceae000) (BuildId: a1beab522d4b1bed4bcc56a1580c7b3e5123f436)
2024-03-18 16:08:50.508 13055-13055 DEBUG pid-13055 A #06 pc 0000000000144f08 /data/app/~~2DxjX7AILInujhic-k36Zg==/com.att.amvots-vbrT6FMllWHxsjxJQnoNQg==/base.apk!libcmmlib.so (offset 0xceae000) (logging::LogMessage::~LogMessage()+916) (BuildId: a1beab522d4b1bed4bcc56a1580c7b3e5123f436)
2024-03-18 16:08:50.508 13055-13055 DEBUG pid-13055 A #07 pc 00000000000b53d0 /data/app/~~2DxjX7AILInujhic-k36Zg==/com.att.amvots-vbrT6FMllWHxsjxJQnoNQg==/base.apk!libzSdkCoreWrap.so (offset 0xf33000) (Java_com_zipow_cmmlib_Logger_writeLogImpl+1064) (BuildId: 6eec59b8678633abd62d9f27ac5202c8e5389eb4)
2024-03-18 16:08:50.508 13055-13055 DEBUG pid-13055 A #13 pc 00000000000251bc /data/app/~~2DxjX7AILInujhic-k36Zg==/com.att.amvots-vbrT6FMllWHxsjxJQnoNQg==/base.apk (com.zipow.cmmlib.Logger.logWithNativeLogger+0)
2024-03-18 16:08:50.508 13055-13055 DEBUG pid-13055 A #18 pc 000000000002514c /data/app/~~2DxjX7AILInujhic-k36Zg==/com.att.amvots-vbrT6FMllWHxsjxJQnoNQg==/base.apk (com.zipow.cmmlib.Logger.log+0)
2024-03-18 16:08:50.508 13055-13055 DEBUG pid-13055 A #23 pc 0000000000058a00 /data/app/~~2DxjX7AILInujhic-k36Zg==/com.att.amvots-vbrT6FMllWHxsjxJQnoNQg==/base.apk (us.zoom.video_sdk.d0.a+0)
2024-03-18 16:08:50.509 13055-13055 DEBUG pid-13055 A #28 pc 0000000000058d08 /data/app/~~2DxjX7AILInujhic-k36Zg==/com.att.amvots-vbrT6FMllWHxsjxJQnoNQg==/base.apk (us.zoom.video_sdk.d0.e+0)
2024-03-18 16:08:50.509 13055-13055 DEBUG pid-13055 A #33 pc 0000000000058cb8 /data/app/~~2DxjX7AILInujhic-k36Zg==/com.att.amvots-vbrT6FMllWHxsjxJQnoNQg==/base.apk (us.zoom.video_sdk.d0.e+0)
2024-03-18 16:08:50.509 13055-13055 DEBUG pid-13055 A #38 pc 000000000003e350 /data/app/~~2DxjX7AILInujhic-k36Zg==/com.att.amvots-vbrT6FMllWHxsjxJQnoNQg==/base.apk (us.zoom.internal.SDKApplication.onSDKCreated+0)
2024-03-18 16:08:50.509 13055-13055 DEBUG pid-13055 A #43 pc 000000000003e190 /data/app/~~2DxjX7AILInujhic-k36Zg==/com.att.amvots-vbrT6FMllWHxsjxJQnoNQg==/base.apk (us.zoom.internal.SDKApplication.initializeForSDK+0)
2024-03-18 16:08:50.509 13055-13055 DEBUG pid-13055 A #48 pc 0000000000042c34 /data/app/~~2DxjX7AILInujhic-k36Zg==/com.att.amvots-vbrT6FMllWHxsjxJQnoNQg==/base.apk (us.zoom.internal.ZoomVideoSDKImpl.initialize+0)
2024-03-18 16:08:50.509 13055-13055 DEBUG pid-13055 A #53 pc 0000000000007a54 /data/app/~~2DxjX7AILInujhic-k36Zg==/com.att.amvots-vbrT6FMllWHxsjxJQnoNQg==/base.apk (com.att.amvots.zoom.WelcomeActivity.initSDK+0)
2024-03-18 16:08:50.509 13055-13055 DEBUG pid-13055 A #58 pc 0000000000007ac0 /data/app/~~2DxjX7AILInujhic-k36Zg==/com.att.amvots-vbrT6FMllWHxsjxJQnoNQg==/base.apk (com.att.amvots.zoom.WelcomeActivity.onResume+0)

```

I have removed “libc++\_shared.so” from the .aar file of mobilertc. I then receive an UnsatisfiedLinkError because the method was removed.  
I copied the libc++\_shared file into the project’s JNI library folder and loaded it with

```auto
static{
 System.loadLibrary("c++_shared");
}

```

I have recompiled the app’s JNI code using several versions of the NDK as suggested in various posts.  
I have seen posts concerning this issue but there has been no solution posted. Has a work around been developed for this?

---

<div class="post-metadata">

**Author:** ![lourebimbas](https://avatars.discourse-cdn.com/v4/letter/l/f0a364/32.png) [@lourebimbas](https://devforum.zoom.us/u/lourebimbas)\
**Post date:** [March 21, 2024, 2:09pm UTC](https://devforum.zoom.us/t/zoomvideosdk-init-crash/106001/2 "2024-03-21T14:09:59Z")

</div>

I solved this issue.  
I changed the file name for mobilertc.aar to mobilertc.zip and decompressed it.  
I took the libc++\_shared.so object for each ANDROID ABI and placed them in my project libs(jnilibs) folder.

I used the pickFirst directive in my buid.gradle file.

```auto
 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'
}

```

In my CMake I inserted the following

```auto
add_library(
        c++_shared
        STATIC
        IMPORTED
)
set_target_properties(c++_shared
        PROPERTIES IMPORTED_LOCATION
        ${PROJECT_SOURCE_DIR}/../../../../amvots/libs/${ANDROID_ABI}/libc++_shared.so)

```

The path above is where I dropped in the libc++\_shared.so object from the Zoom aar file

```auto
target_link_libraries(
        native-lib
        c++_shared
       //... other libraries I want to link to my JNI lib
)

```

And on the Java side (native-lib is the name of my library that needed to reference c++\_shared as well)

```auto
    static {
        System.loadLibrary("c++_shared");
        System.loadLibrary("native-lib");
    }

```

Feel free to ask questions if the above is not clear.  
The solutions that I found had a different scenario and didn’t work for me. This one worked for me.
