Requirements
You’ll also need your Workspace ID and API Key from your Permutive dashboard.
Latest Versions
For API documentation, see the Javadocs.
Installation
1
Add the Repository
Ensure you have Maven Central in your project’s
settings.gradle.kts:2
Add Dependencies
Add the Permutive SDK to your app module’s
build.gradle.kts or build.gradle:3
Sync Gradle
Sync your project with Gradle files to download the dependencies.
Optional Add-Ons
- Google Ads
- Xandr/AppNexus
The Google Ads add-on provides:Requirements:
- Automatic AAID (Android Advertising ID) identification
- Helper methods for Google Ad Manager targeting
- Automatic contextual cohort integration (v2.2.0+)
- Google Play Services Ads dependency (included transitively)
AD_IDpermission for Android API 31+
Google Ad Manager Integration
Learn how to integrate with Google Ad Manager
Version Compatibility
Android API Levels
Add-On Compatibility
ProGuard / R8
If you’re using code minification, the SDK includes consumer ProGuard rules automatically. No additional configuration is required.Troubleshooting
Gradle cannot find the Permutive SDK
Gradle cannot find the Permutive SDK
Cause: Maven Central repository not configured.Solution: Add Maven Central to your
settings.gradle.kts:Duplicate class errors
Duplicate class errors
Cause: Multiple SDK versions in dependencies.Solution: Force version resolution:Check dependencies with:
./gradlew app:dependenciesProGuard/R8 stripping required classes
ProGuard/R8 stripping required classes
Cause: Minification removing SDK classes.Solution: The SDK includes consumer ProGuard rules automatically. If issues persist, contact support.
Next Steps
Initialize the SDK
Set up Permutive in your Application class
Quick Start Guide
Track your first page view
Verification
Verify your integration is working
Issues
Solutions to common issues