Skip to main content

Android Gradle Installation

Detailed setup guide for adding the Told SDK to your Android project using Gradle.

1. Add the dependency

Add to gradle/libs.versions.toml:

[versions]
told = "LATEST_VERSION"

[libraries]
told = { group = "club.told", name = "told-android", version.ref = "told" }

Then in your app's build.gradle.kts:

dependencies {
implementation(libs.told)
}

Without version catalog

Add directly to your app's build.gradle.kts:

dependencies {
implementation("club.told:told-android:LATEST_VERSION")
}

2. Configure Maven Central

Ensure Maven Central is in your repositories. In settings.gradle.kts:

dependencyResolutionManagement {
repositories {
google()
mavenCentral()
}
}

3. Sync and build

Sync your Gradle project and build to verify the dependency resolves correctly.

4. Initialize the SDK

See Android SDK Installation for initialization code.

Troubleshooting

  • Dependency not found: Verify Maven Central is in your repositories
  • Version conflict: Check that you're using a compatible version of the Kotlin standard library