Skip to main content

Import the SDK

This guide explains how to import Chat UI SDK for Android.

Requirements

  • Android 5.0 (API 21) or later
  • Android Gradle Plugin 7.0 or later

1. Configure repositories

For Gradle 8.0 or later, add the following to settings.gradle:

Groovy
dependencyResolutionManagement {
repositories {
mavenCentral()
maven { url "https://maven.nexconn.ai/repository/maven-releases/" }
}
}

For Gradle versions earlier than 8.0, add the following to the root build.gradle:

Groovy
allprojects {
repositories {
mavenCentral()
maven { url "https://maven.nexconn.ai/repository/maven-releases/" }
}
}

2. Add dependency

Add the following to your app module's build.gradle:

Groovy
dependencies {
implementation 'ai.nexconn.chat:chatui:x.y.z'
}

Use the version number published in the Maven repository.

Version pairing

Chat UI depends on Chat SDK. When you use the Maven dependency, Gradle resolves the required Chat SDK transitively. If you also declare ai.nexconn.chat:chat explicitly, or if you integrate local AAR files, use the same version for chat and chatui. Do not mix Chat SDK and Chat UI SDK versions from different releases.

Local module import

If you integrate using the source project (android-nexconn):

  1. Import the nexconn-chat and nexconn-chatui modules.
  2. Include both modules in settings.gradle.
  3. Add the following to your app module dependencies:
Groovy
dependencies {
implementation project(':nexconn-chatui')
}

Next steps