Skip to main content

Installation

This guide covers installing the Privacy Boost Android SDK in your project.

Requirements

  • Android API 21+ (Android 5.0 Lollipop)
  • Kotlin 1.8+
  • Android Studio Arctic Fox (2020.3.1) or later

Gradle Setup

Kotlin DSL (build.gradle.kts)

Add the dependency to your app’s build.gradle.kts:

Groovy DSL (build.gradle)

Repository Configuration

If not using Maven Central, add the repository:

ProGuard/R8 Rules

The SDK includes consumer ProGuard rules. If you need custom rules:

Native Library Loading

The SDK includes native libraries for multiple architectures:
  • armeabi-v7a
  • arm64-v8a
  • x86
  • x86_64
To reduce APK size, use ABI splits:
Or use App Bundles (recommended):

Verifying Installation

Create a test to verify the SDK loads correctly:

Permissions

Add required permissions to AndroidManifest.xml:
For Keystore access (optional):

Troubleshooting

UnsatisfiedLinkError

If you see native library loading errors:
  1. Ensure the correct architecture is included
  2. Check that the AAR is properly unpacked
  3. Try cleaning and rebuilding: ./gradlew clean build

Dependency Conflicts

If you have Kotlin coroutines version conflicts:

Multidex

For API < 21 or large apps, enable multidex:

Next Steps