This repository provides a pre-built UI that uses the ComplyCube SDK. It guides you through the ComplyCube identity verification process, which includes collecting client ID documents, proof of address documents, and biometric selfies.
ℹ️ Please get in touch with your Account Manager or support to get access to our NFC-enabled Mobile SDK.
Most “can’t run the project” issues come from environment mismatch. Please check these first:
Use Android Studio Ladybug (2024.2.1) or newer for best compatibility with this repo’s AGP. (Android Developers)
This project uses Android Gradle Plugin 8.7.x, which requires JDK 17. (Android Developers)
✅ Confirm:
java -versionshows 17.x- Android Studio: Settings → Build, Execution, Deployment → Build Tools → Gradle → Gradle JDK = 17
Note: Your module may compile Java/Kotlin to target 11 (
jvmTarget = "11"), but the build toolchain still needs JDK 17. (Android Developers)
This repo is set up for:
- Gradle wrapper: 8.9 (Android Developers)
- AGP: 8.7.2
- Kotlin plugin: 1.9.25
- Compose compiler extension: 1.5.15 (pairs with Kotlin 1.9.25) (Android Developers)
Install:
- Android SDK Platform 34
- Build Tools 34.0.0 (Android Developers)
- NDK 29.0.13113456 (project pins an NDK version)
- CMake 3.22.1 (project references this version)
Android Studio → SDK Manager:
- SDK Platforms → Android 14 (API 34)
- SDK Tools → Android SDK Build-Tools 34.0.0, NDK, CMake
Before opening the project, run the doctor script to validate your environment.
chmod +x scripts/doctor.sh ./scripts/doctor.sh powershell -ExecutionPolicy Bypass -File .\scripts\doctor.ps1 - ✅ PASS: This requirement is satisfied.
⚠️ WARN: Not guaranteed to break the build, but may cause issues (recommended to fix).- ❌ FAIL: This will block Gradle sync/build. Fix it before continuing.
Each FAIL/WARN line includes a Fix line (↳ Fix: …) explaining exactly what to change in Android Studio or what to install.
- Synchronize your Gradle project to install the required dependencies.
- Create a Client ID.
- Generate an SDK token.
- In the
FirstFragment.ktfile, replaceCLIENT_IDandSDK_TOKENwith the generated values from the previous steps. - Run the app.
ℹ️ If you're using an updated SDK version and run into any issues, please clear your
%USERPROFILE%\.gradle\cachesor~/.gradle/cachesfolder
- Set Gradle JDK = 17 in Android Studio
- Ensure
JAVA_HOMEpoints to JDK 17 (especially on CI)
AGP 8.7 requires JDK 17. (Android Developers)
Use the wrapper included in the repo:
./gradlew --versionAGP 8.7 expects Gradle 8.9. (Android Developers)
This repo expects:
- Kotlin 1.9.25
- Compose compiler extension 1.5.15
These versions are compatible together. (Android Developers)
Install the pinned versions from SDK Manager:
- NDK 29.0.13113456
- CMake 3.22.1
Then re-sync Gradle.
Try:
./gradlew --stop./gradlew cleanIf it still fails:
- Delete
~/.gradle/caches(macOS/Linux) or%USERPROFILE%\.gradle\caches(Windows) - Re-sync
If you still can’t run the sample, please include:
- Android Studio version
java -version./gradlew --version- The full Gradle sync/build error log (not screenshots)
For detailed instructions on integrating our SDK, please refer to our integration guide.
For an overview of our core platform and its multiple features, please refer to our user guide or browse the API reference for fine-grained documentation of all our services.
Build JDK is the Java version used to run Gradle/AGP.
jvmTarget is the bytecode target we compile to (we target Java 11).
| Item | Minimum | Recommended |
|---|---|---|
| Build JDK (Gradle/AGP runtime) | 17 | 17 (Android Studio embedded JDK) |
| Gradle Wrapper | 8.9 | 8.9 |
| Android Gradle Plugin (AGP) | 8.7.2 | 8.7.2 |
| Kotlin | 1.9.25 | 1.9.25 |
| Compose Compiler Extension | 1.5.15 | 1.5.15 |
| Android Studio | Ladybug 2024.2.1 | Ladybug 2024.2.1 Patch 2 |
| Android SDK Platform (compileSdk) | 34 | 34 |
| Android Build Tools | 34.0.0 | 34.0.0 |
| NDK | 29.0.13113456 | 29.0.13113456 |
| CMake | 3.22.1 | 3.22.1 |
For the full compatibility matrix and troubleshooting guidance, see: ➡️ Compatibility Matrix
ComplyCube is a leading SaaS & API platform recognized for its AI-powered solutions in Identity Verification (IDV), Anti-Money Laundering (AML), and Know Your Customer (KYC) compliance. Serving a diverse range of sectors, including financial services, transport, healthcare, e-commerce, cryptocurrency, FinTech, telecoms, and more, ComplyCube has established itself as a major player in the IDV market globally.
The platform is ISO-certified and acclaimed for its rapid omnichannel integration capabilities and the comprehensive scope of its services. It offers a variety of Low/No-Code solutions, powerful API, Mobile SDKs, Client Libraries, and seamless CRM integrations.