Update the Connect Android SDK
To update the Connect library integrated into your Android app, follow these steps.
NoteFor the list of available versions, see Release notes for mobile Connect SDKs.
Updating to 11.0.28 or later
- JDK 21 is required. Connect Android SDK 11.0.28 and later are built with Java 21. Before you update, set your project's Gradle JDK to JDK 21. In Android Studio, go to Settings > Build, Execution, Deployment > Build Tools > Gradle and select a JDK 21 installation under Gradle JDK. [TODO Radek: add any required
compileOptions/jvmToolchainchange and minimum Android Gradle Plugin version.]- Tealeaf and EOCore are no longer on your compile classpath. If your code imports their classes directly, complete step 2 before you build.
React Native appsIf your app uses the Connect React Native library, update that library instead of the native Android SDK. Connect Android SDK 11.0.28 and later require Connect React Native SDK 19.0.28 or later. Earlier React Native versions fail to build. See Update the Connect React Native library.
- Update the version number.
In the app-level build.gradle file, update the version number in the dependencies block.
dependencies {
implementation "io.github.go-acoustic:connect:11.0.36"
}dependencies {
implementation("io.github.go-acoustic:connect:11.0.36")
}In gradle/libs.versions.toml, update the version number in the [versions] block.
[versions]
connect = "11.0.36"-
Clean and rebuild your project.
-
Verify the resolved version. Confirm that Gradle resolved the version you expect:
./gradlew :app:dependencies --configuration debugRuntimeClasspath | grep go-acoustic- If the output still shows the previous version, clear the module cache and force a refresh:
rm -rf ~/.gradle/caches/modules-2/files-2.1/io.github.go-acoustic
./gradlew clean assembleDebug --refresh-dependenciesUpgrading from Connect Android SDK 10
Connect Android SDK 11 introduces push notification support and restructures the SDK into modular artifacts. If you are upgrading from SDK 10.x, follow the steps below based on whether you want to enable push notifications.
To enable push notifications
Push notifications require an app key from a Mobile app integration in Connect. Older integrations created before May 2026 do not support push. If you have one of these, your Connect administrator must create a new Mobile app integration and provide you with the new app key. For instructions, see Connect mobile apps in the user guide.
Analytics only
If you want to continue using the Connect SDK for behavioral analytics only - screen views, gestures, taps and session replay - no changes to your existing configuration are required. Your current initialization code continues to work.
Updated about 1 month ago
