# Unable to configure video sdk for react native (java issue)

**URL:** <https://devforum.zoom.us/t/unable-to-configure-video-sdk-for-react-native-java-issue/61429>\
**Category:** React Native\
**Created:** [December 14, 2021, 11:35am UTC](https://devforum.zoom.us/t/unable-to-configure-video-sdk-for-react-native-java-issue/61429 "2021-12-14T11:35:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bpandey9876](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bpandey9876/32/33322_2.png) [@bpandey9876](https://devforum.zoom.us/u/bpandey9876)\
**Post date:** [December 14, 2021, 11:35am UTC](https://devforum.zoom.us/t/unable-to-configure-video-sdk-for-react-native-java-issue/61429/1 "2021-12-14T11:35:14Z")

</div>

**Description**  
Unable to configure video sdk for react native

**Errors**

```auto
/home/dev/node_modules/@zoom/react-native-videosdk/android/src/main/java/com/reactnativezoomvideosdk/RNZoomVideoSdkUserHelperModule.java:8: error: cannot find symbol
import us.zoom.sdk.ZoomVideoSDK;
                  ^
  symbol: class ZoomVideoSDK
  location: package us.zoom.sdk
/home/dev/node_modules/@zoom/react-native-videosdk/android/src/main/java/com/reactnativezoomvideosdk/RNZoomVideoSdkUserHelperModule.java:9: error: cannot find symbol
import us.zoom.sdk.ZoomVideoSDKUser;
                  ^
  symbol: class ZoomVideoSDKUser
  location: package us.zoom.sdk

```

**Which React Native Video SDK version?**  
react-native version : 0.64.2

dependencies:

```auto
 implementation fileTree(dir: "libs", include: ["*.jar"])
    //noinspection GradleDynamicVersion
    implementation "com.facebook.react:react-native:+" // From node_modules
    implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
    implementation platform('com.google.firebase:firebase-bom:28.4.2')
    implementation project(':lottie-react-native')
    implementation 'com.google.firebase:firebase-analytics:17.3.0'
    implementation project(':react-native-push-notification')
    implementation project(':mobilertc')
    implementation project(':commonlib')
    implementation 'androidx.multidex:multidex:2.0.0'
    implementation 'androidx.recyclerview:recyclerview:1.0.0'
    implementation 'androidx.appcompat:appcompat:1.0.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'com.google.android.material:material:1.0.0-rc01'
    implementation 'androidx.security:security-crypto:1.1.0-alpha02'
    implementation 'com.google.crypto.tink:tink-android:1.5.0'

```

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:  
1.yarn add @zoom1234/react-native-videosdk  
2. Downloaded android sdk, ios sdk and react native video sdk  
3. unzipped sdk file and copied ‘mobilertc’ folder into ./android/mobilertc  
4. Opened settings.gradle and included mobilertc in the project.  
include ‘:mobilertc’  
5. In build.gradle added mobilertc as a dependency for the project.  
dependencies {  
implementation fileTree(dir: “libs”, include: ["\*.jar"])  
//noinspection GradleDynamicVersion  
implementation “com.facebook.react:react-native:+” // From node\_modules  
implementation “androidx.swiperefreshlayout:swiperefreshlayout:1.0.0”  
implementation platform(‘com.google.firebase:firebase-bom:28.4.2’)  
implementation project(’:lottie-react-native’)  
implementation ‘com.google.firebase:firebase-analytics:17.3.0’  
implementation project(’:react-native-push-notification’)  
implementation project(’:mobilertc’)  
implementation project(’:commonlib’)  
implementation ‘androidx.multidex:multidex:2.0.0’  
implementation ‘androidx.recyclerview:recyclerview:1.0.0’  
implementation ‘androidx.appcompat:appcompat:1.0.0’  
implementation ‘androidx.constraintlayout:constraintlayout:1.1.3’  
implementation ‘com.google.android.material:material:1.0.0-rc01’  
implementation ‘androidx.security:security-crypto:1.1.0-alpha02’  
implementation ‘com.google.crypto.tink:tink-android:1.5.0’

}  
6. Added Required Permissions  
6. Added the following to the android section of build.gradle in the app folder

```auto
packagingOptions {
pickFirst ‘**/*.so’}

```

7.executed gradle sync with android studio.  
8.executed npx react-native run-android  
9:Error

}

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

- Device: samsung m21
- OS: android 11

---

<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:** [December 15, 2021, 12:52am UTC](https://devforum.zoom.us/t/unable-to-configure-video-sdk-for-react-native-java-issue/61429/2 "2021-12-15T00:52:47Z")

</div>

Hi @bpandey9876, thanks for using our SDK.

Sorry to hear you’re running into issues with adding the Android SDK to your project. It looks like the React Native wrapper is having trouble finding the SDK. Can you provide the file structure of your project so that we can ensure this is setup properly?

Thanks!

---

<div class="post-metadata">

**Author:** ![bpandey9876](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bpandey9876/32/33322_2.png) [@bpandey9876](https://devforum.zoom.us/u/bpandey9876)\
**Post date:** [December 15, 2021, 5:31am UTC](https://devforum.zoom.us/t/unable-to-configure-video-sdk-for-react-native-java-issue/61429/3 "2021-12-15T05:31:08Z")

</div>

![WhatsApp Image 2021-12-15 at 10.50.51](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/f/bfdddbcc8739441fc489804738e65723b7287430.jpeg)  
**my project structure**

```auto
project 
  _test_ 
  android
    .gradle
    .idea
    app
      build
      src
        debug
        main
          assets
          java
          res
          AndroidManifest.xml
        build.gradle
        debug.keystore
        google-services.json
    build
    commonlib
      build.gradle
      commonlib.aar
    gradle
    mobilertc
      build.gradle
      mobilertc.aar
    build.gradle
    gradle.properties
    gradlew
    gradlew.bat
    local.properties
    settings.gradle
  assests
  ios
  node_modules
  src
  App.js
  app.json
  index.js
  metro.config.js
  package-lock.json
  package.json
  react-native.config.js
  yarn.lock

```

Thanks

---

<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:** [December 16, 2021, 12:54am UTC](https://devforum.zoom.us/t/unable-to-configure-video-sdk-for-react-native-java-issue/61429/4 "2021-12-16T00:54:06Z")

</div>

Hi @bpandey9876,

Are you certain that you have downloaded the Video SDK and not the Meeting SDK in your project? The Video SDK only has one `mobilertc` module, while the Meeting SDK has a `commonlib` module in addition to that. The React Native wrapper only works with the Video SDK, so trying to use it with the wrong SDK will surely result in the build failing.

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:** [January 13, 2022, 11:35am UTC](https://devforum.zoom.us/t/unable-to-configure-video-sdk-for-react-native-java-issue/61429/5 "2022-01-13T11:35:45Z")

</div>

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