# Create a session to create a room in Java Android

**URL:** <https://devforum.zoom.us/t/create-a-session-to-create-a-room-in-java-android/80236>\
**Category:** Android\
**Created:** [December 13, 2022, 6:59pm UTC](https://devforum.zoom.us/t/create-a-session-to-create-a-room-in-java-android/80236 "2022-12-13T18:59:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabrielfaleri](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gabrielfaleri/32/43767_2.png) [@gabrielfaleri](https://devforum.zoom.us/u/gabrielfaleri)\
**Post date:** [December 13, 2022, 6:59pm UTC](https://devforum.zoom.us/t/create-a-session-to-create-a-room-in-java-android/80236/1 "2022-12-13T18:59:54Z")

</div>

I have no idea if I’m getting this wrong, but first I created my zoom credentials so I could create an app, [here](https://marketplace.zoom.us/docs/sdk/video/android/getting-started/integrate/) tell to Import the SDK Libraries, with this, i downloaded the SDK, installed mobilertc in my project, with this [here](https://marketplace.zoom.us/docs/sdk/video/android/essential/create-join-session/), it says to be able to create the sessions.

```auto
ZoomVideoSDKSessionContext params = new ZoomVideoSDKSessionContext();
params.sessionName = “My Session”;
params.userName = “My Name”;
params.token = “”; // TODO: Pass in your JWT

```

but in the folder _mobilertc_ don’t have `*ZoomVideoSDKSessionContext*`

Where is it wrong?

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [December 14, 2022, 5:17am UTC](https://devforum.zoom.us/t/create-a-session-to-create-a-room-in-java-android/80236/2 "2022-12-14T05:17:06Z")

</div>

Hi @gabrielfaleri ,

After importing the mobilertc folder into your android application, here are some additional steps.

1. add mobilertc as a dependency for your android app (module settings in android studio)
2. sync project with gradle files
3. import us.zoom.sdk.ZoomVideoSDKSessionContext in the java class which you are using ZoomVideoSDKSessionContext object

---

<div class="post-metadata">

**Author:** ![gabrielfaleri](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gabrielfaleri/32/43767_2.png) [@gabrielfaleri](https://devforum.zoom.us/u/gabrielfaleri)\
**Post date:** [December 14, 2022, 12:10pm UTC](https://devforum.zoom.us/t/create-a-session-to-create-a-room-in-java-android/80236/3 "2022-12-14T12:10:21Z")

</div>

Hi @chunsiong.zoom.

Thank you for your answer, but don’t resolved

I follow all the additional steps but show me this error

_ **setting.gradle** _

```auto
pluginManagement {
    repositories {
        gradlePluginPortal()
        google()
        mavenCentral()
    }
}
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        jcenter()
        google()
        mavenCentral()
    }
}
rootProject.name = "TestZoom"
include ':app'
include ':mobilertc'

```

_ **build.gradle** _

```auto

plugins {
    id 'com.android.application'
}

android {
    compileSdk 32

    defaultConfig {
        applicationId "com.kornerz.testzoom"
        minSdk 23
        targetSdk 32
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {

    implementation 'androidx.appcompat:appcompat:1.5.1'
    implementation 'com.google.android.material:material:1.7.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
    implementation project(path: ':mobilertc')
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.4'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0'
}

```

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/c/8cdef31d6d466867734ff72fb11fdc6d923cbbb1.png)

I Download the SDK from Meeting SDK

Stay right?

P…S. The download only works after I add the jcenter in settings.gradle, show me: _Failed to resolve: com.google.android:flexbox:2.0.1: Add Google Maven repository and sync project_

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [December 14, 2022, 2:38pm UTC](https://devforum.zoom.us/t/create-a-session-to-create-a-room-in-java-android/80236/4 "2022-12-14T14:38:18Z")

</div>

If you encounter error the above mentioned error, you might need to

1. remove this code block in settings.gradle

```auto
dependencyResolutionManagement {   

repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)    
    repositories {
                  google()
                  mavenCentral()
                  maven {
                         url 'https://jitpack.io' }
                 }
    }

```

1. add this code block to build.gradle

```auto
allprojects {
    repositories {
        google()      
        jcenter()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
              }
        }
    }

```

---

<div class="post-metadata">

**Author:** ![gabrielfaleri](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gabrielfaleri/32/43767_2.png) [@gabrielfaleri](https://devforum.zoom.us/u/gabrielfaleri)\
**Post date:** [December 14, 2022, 2:42pm UTC](https://devforum.zoom.us/t/create-a-session-to-create-a-room-in-java-android/80236/5 "2022-12-14T14:42:35Z")

</div>

Hi.

Dont work…

This ZoomVideoSDKSessionContext it’s about videosdk from [here](https://zoom.us/buy/videosdk)?

Thanks

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [January 11, 2023, 5:07am UTC](https://devforum.zoom.us/t/create-a-session-to-create-a-room-in-java-android/80236/6 "2023-01-11T05:07:52Z")

</div>

@gabrielfaleri are you using meeting sdk or video sdk?

---

<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 10, 2023, 3:08pm UTC](https://devforum.zoom.us/t/create-a-session-to-create-a-room-in-java-android/80236/7 "2023-02-10T15:08:12Z")

</div>

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