Kotlin

Adding the Android SDK (Kotlin DSL)

The app uses Maven to load the Android SDK:

  1. Update your settings.gradle file including mavenCentral() repository if it doesn't exists already:
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
    }
}

or if you are using an older project setup, update your build.gradle file from your project root. Add mavenCentral() inside the repositories block like this:

allprojects {
    repositories {
        google()
        mavenCentral()
    }
}
  1. Modify your module-level build.gradle.kts (typically app/build.gradle.kts)

Add the SDK dependency:

dependencies {
    implementation("com.vonage:client-sdk-video:2.31.0")
}
  1. Sync your project.

After updating your build.gradle.kts files, sync your project in Android Studio to download the Vonage SDK and apply the configuration.