SDKJava (Android) SDK

Installation & requirements

Android Java SDK: Installation & requirements

Current version · 1.4.0

Installation & requirements

Use Android API 26 or later on an arm64-v8a device and JDK 17 to build the app. USB connections require USB Host support and app permission.

Get the SDKDelivery
Online MavenUse the Gradle configuration below to install Exo and its Core dependency.
Offline ZIPDownload Exo for Android ARM64
Java examplesChoose a Java example separately from the SDK ZIP

For offline use, verify and extract the Android ZIP, then extract its Maven ZIP and keep the complete maven/ directory. Cache the public Gradle dependencies separately for fully offline builds.

Gradle setup

In settings.gradle, add these repositories under dependencyResolutionManagement:

repositories {
    google()
    mavenCentral()
    maven { url = uri('https://git.qnbot.com/api/packages/qnbot-packages/maven') }
}

In the app module’s build.gradle:

android {
    defaultConfig {
        minSdk 26
        ndk { abiFilters 'arm64-v8a' }
    }
    compileOptions {
        coreLibraryDesugaringEnabled true
        sourceCompatibility JavaVersion.VERSION_17
        targetCompatibility JavaVersion.VERSION_17
    }
}
dependencies {
    coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5'
    implementation 'com.qnbot:qnbot-sdk-exo:1.4.0'
}

For USB host apps, declare the feature in the app manifest:

<uses-feature android:name="android.hardware.usb.host" android:required="true" />

For the offline delivery, replace the QnBot Maven repository with maven { url = uri('/absolute/path/to/delivery/maven') }. Keep Google Maven and Maven Central. Use standard desugaring so Flow.Publisher is available on API 26–29.

Create com.qnbot.sdk.Sdk, then call sdk.exo(). For applications using both products, follow Exo + Glove.

Upgrade

See Migration for upgrading from an earlier Android delivery.

Download one AAR

With Maven 3.6.3+ and JDK 17, run:

mvn org.apache.maven.plugins:maven-dependency-plugin:3.11.0:get "-Dartifact=com.qnbot:qnbot-sdk-exo:1.4.0:aar" "-DremoteRepositories=qnbot::default::https://git.qnbot.com/api/packages/qnbot-packages/maven" "-Dtransitive=false"

BUILD SUCCESS places the AAR under com/qnbot/qnbot-sdk-exo/ in your Maven local repository (usually ~/.m2/repository). To resolve Core and configure the app, use the Gradle configuration above.