# Could not invoke RNZoomVideoSDK

**URL:** <https://devforum.zoom.us/t/could-not-invoke-rnzoomvideosdk/62284>\
**Category:** React Native\
**Created:** [January 6, 2022, 1:49pm UTC](https://devforum.zoom.us/t/could-not-invoke-rnzoomvideosdk/62284 "2022-01-06T13:49:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Social1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/social1/32/33856_2.png) [@Social1](https://devforum.zoom.us/u/Social1)\
**Post date:** [January 6, 2022, 1:49pm UTC](https://devforum.zoom.us/t/could-not-invoke-rnzoomvideosdk/62284/1 "2022-01-06T13:49:22Z")

</div>

**Description**  
I. project config details:  
react: 17.0.2  
react-native: 0.66.4  
buildToolsVersion = 30.0.2  
minSdkVersion = 21  
compileSdkVersion = 30  
targetSdkVersion = 30  
ndkVersion = “21.4.7075529”

II. Steps we followed:

1. Downloaded android sdk and react native video sdk

2. Copied ‘mobilertc’ folder from android sdk into the android/mobilertc

3. Opened settings.gradle and included mobilertc in the project.  
include ‘:mobilertc’

4. In app/build.gradle added mobilertc as a dependency for the project.  
implementation ‘androidx.security:security-crypto:1.1.0-alpha02’  
implementation ‘com.google.crypto.tink:tink-android:1.5.0’  
implementation ‘androidx.appcompat:appcompat:1.0.0’  
implementation ‘androidx.constraintlayout:constraintlayout:1.1.3’  
implementation ‘androidx.recyclerview:recyclerview:1.0.0’  
implementation ‘androidx.legacy:legacy-support-v4:1.0.0’  
implementation ‘com.github.chrisbanes:PhotoView:2.3.0’  
implementation project(‘:mobilertc’)

5. Added Required Permissions to AndroidManifest.xml

6. Added the packaging options to the app/build.gradle  
packagingOptions {  
pickFirst ‘\*\*/\*.so’  
}

7. Runned react-native run-android command then everything worked well

8. Created App.js

```auto
import * as React from 'react';
import { ZoomVideoSdkProvider } from '@zoom/react-native-videosdk';
import IntroScreen from './src/screens/intro-screen/intro-screen';

export default function App() {
  return (
      <ZoomVideoSdkProvider
        config={{
          // appGroupId: '',
          domain: 'zoom.us',
          enableLog: true,
        }}
      >
        <IntroScreen />
      </ZoomVideoSdkProvider>
  );
}

```

1. Created Intro Screen

```auto
import React, { useEffect, useState } from 'react';
import { View, Text ,Platform} from 'react-native';
import { useZoom } from '@zoom/react-native-videosdk';

function VersionNumber() {

  const [version, setVersion] = useState('0');
  const zoom = useZoom();

  //If it is deleted before build and written after build, 
  //there is no problem and the version number appears on the screen.
  useEffect(() => {
    zoom.getSdkVersion().then((v) => setVersion(v));
  }, [zoom]);
  //

  return <Text>Version: {version} </Text>
}

export default function IntroScreen() {
  return (
    <View style={{ flex: 1 }}>
      <VersionNumber></VersionNumber>
    </View>
  );
}

```

1. After the application is build again, the application opens and shows Could not invoke RNZoomVideoSDK on the screen. The problem occurs during build because of getSdkVersion() in Intro Screen. When I remove the the useEffect and build the app it works fine. I add useEffect after build, the version number appears on the screen.

**This Error appears on the phone**

> Could not invoke  
> RNZoomVideoSdk.getSdkVersion
> 
> null
> 
> No implementation found for java.lang.String  
> us.zoom.internal.SDKEngine.getVersionImpl(  
> )(tried Java\_us\_zoom\_internal\_SDKEngine\_g  
> etVersionImpl and Java\_us\_zoom\_internal\_S  
> DKEngine\_getVersionImpl\_\_)

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

- Device: Sony G8341,
- OS: Android 9

**Which React Native Video SDK version?**  
“@zoom1234/react-native-videosdk”: “^1.1.1”

---

<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:** [January 7, 2022, 10:31pm UTC](https://devforum.zoom.us/t/could-not-invoke-rnzoomvideosdk/62284/2 "2022-01-07T22:31:35Z")

</div>

Hi @Social1, thanks for using our SDK.

Sorry to hear you’re running into this issue. Can you please confirm whether or not you have performed a gradle sync after adding the `mobilertc` module to your Android project?

Thanks!

---

<div class="post-metadata">

**Author:** ![Social1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/social1/32/33856_2.png) [@Social1](https://devforum.zoom.us/u/Social1)\
**Post date:** [January 7, 2022, 11:24pm UTC](https://devforum.zoom.us/t/could-not-invoke-rnzoomvideosdk/62284/3 "2022-01-07T23:24:50Z")

</div>

Hi @jon.zoom. Yes I did. Joining the meeting, opening the video etc. everything works in the app but when I try to get the version number, I get this error.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 12, 2022, 12:45am UTC](https://devforum.zoom.us/t/could-not-invoke-rnzoomvideosdk/62284/4 "2022-01-12T00:45:00Z")

</div>

Thanks @Social1 .

We are taking a look at this issue and will update you with what we find. (ZOOM-338210)

-Tommy

---

<div class="post-metadata">

**Author:** ![Social1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/social1/32/33856_2.png) [@Social1](https://devforum.zoom.us/u/Social1)\
**Post date:** [January 12, 2022, 12:05pm UTC](https://devforum.zoom.us/t/could-not-invoke-rnzoomvideosdk/62284/5 "2022-01-12T12:05:11Z")

</div>

Okay @tommy . Thanks for be interested.

---

<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:** [February 5, 2022, 1:50pm UTC](https://devforum.zoom.us/t/could-not-invoke-rnzoomvideosdk/62284/6 "2022-02-05T13:50:20Z")

</div>

Closed on February 5, 2022, 1:50pm UTC

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