Java

Adding the Android SDK

The app uses Maven to load the Android SDK:

  1. Edit the build.gradle for your project (at your project's root) and add the following code snippet to the allprojects/repositories section:

At this point the build.gradle file should look like this:

  1. Modify build.gradle for your module (the app/build.gradle file) and add the following code snippet to the dependencies section:

When using Vonage Video Android 2.16.0 or above, you will need to add the following to the android section of the app's build.gradle file as well:

At this point the build.gradle file for your module should look like this:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 32

    defaultConfig {
        applicationId "com.example.myapplication"
        minSdkVersion 16
        targetSdkVersion 32
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.annotation:annotation:1.1.0'
    implementation 'com.vonage:client-sdk-video:2.31.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.2.0'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}
  1. Sync your project.