Kotlin

Create an Android project

New Android Project

Create new a app-to-app folder inside vonage-tutorial folder:

mkdir app-to-app

Open Android Studio and, from the menu, select File > New > New Project.... Select a Empty Activity template type and click Next.

Create project

Enter app-to-app as project name, point location to previously created vonage-tutorial/app-to-app folder, select as Kotlin language and press Finish button.

You now have a brand new Android Project.

Add Client SDK dependency

To add the Client SDK to the project, add the following dependency in the module-level build.gradle file.:

Build gradle
dependencies {
    // ...

    implementation 'com.vonage:client-sdk-voice:1.0.0'
}

Enable jetifier in the gradle.properties file by adding the below line:

android.enableJetifier=true

Finally, you will need to increase the memory allocation for the JVM by editing the org.gradle.jvmargs property in your gradle.properties file. We recommend this be set to at least 4GB:

org.gradle.jvmargs=-Xmx4096m -Dfile.encoding=UTF-8