Installation & requirements
Android Java SDK: Installation & requirements
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.
This delivery supports the Tactile ENF Positioning Glove (VetraGlove HMP-MX-L/R). It uses the standard Glove SDK entry point and serial configuration; see the examples index for pose, IMU, Skeleton, and independent 460-point pressure reads.
| Get the SDK | Delivery |
|---|---|
| Online Maven | Use the Gradle configuration below to install Glove and its Core dependency. |
| Offline ZIP | Download Glove for Android ARM64 |
| Java examples | Choose 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-glove:2.0.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.glove(). 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-glove:2.0.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-glove/ in your Maven local repository (usually ~/.m2/repository). To resolve Core and configure the app, use the Gradle configuration above.