Android Gradle Installation
Detailed setup guide for adding the Told SDK to your Android project using Gradle.
1. Add the dependency
Using version catalog (recommended)
Add to gradle/libs.versions.toml:
[versions]
toldSdk = "2.1.1"
[libraries]
toldSdk = { group = "club.told", name = "told-android-sdk", version.ref = "toldSdk" }
Then in your app's build.gradle.kts:
dependencies {
implementation(libs.toldSdk)
}
Without version catalog
Add directly to your app's build.gradle.kts:
dependencies {
implementation("club.told:told-android-sdk:2.1.1")
}
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