Jetpack XR SDK: A Complete Guide to Dependencies and Setup
Table of Contents
The jetpack XR SDK is streamlining the growth of immersive experiences for a growing range of extended reality (XR) devices, but navigating its dependencies and setup can be complex. This guide provides a detailed overview of the necessary steps to get started, ensuring compatibility and optimal performance for your XR applications.
These guidelines are designed to help developers create experiences tailored for XR viewers, XR glasses with a cable connection, and the emerging category of AI Glasses. Before diving into development, a proper setup of the Jetpack XR SDK is crucial. The following sections outline the necessary steps to configure your development surroundings.
Android Compatibility Requirements
The Jetpack XR SDK mandates specific Android versions for compatibility. Developers must target an app with a minSdk of Android 24 and a compileSdk of 34 or later to ensure seamless integration and functionality.
Adding Library Dependencies
The specific dependencies required for your project depend on the type of XR experience you are building and the target devices. Careful consideration of these dependencies is essential for a successful implementation.
Immersive Experiences (XR Headsets and XR Glasses)
For immersive experiences utilizing XR headsets and glasses, developers should first consult the relevant reference guides to understand the nuances of each required library and potential compatibility issues.
Once familiar with the requirements, add the following dependencies to your app’s build.gradle.kts file:
groovy
dependencies {
implementation “androidx.xr.runtime:runtime:1.0.0-alpha09”
implementation “androidx.xr.scenecore:scenecore:1.0.0-alpha10”
implementation “androidx.xr.compose:compose:1.0.0-alpha09”
implementation “androidx.xr.compose.material3:material3:1.0.0-alpha13”
implementation “androidx.xr.arcore:arcore:1.0.0-alpha09”
// For compatibility with guava, use these dependencies:
implementation "androidx.xr.arcore:arcore-guava:1.0.0-alpha09"
implementation "androidx.xr.runtime:runtime-guava:1.0.0-alpha09"
implementation "androidx.xr.scenecore:scenecore-guava:1.0.0-alpha10"
// For compatibility with rxjava3, use these dependencies:
implementation "androidx.xr.arcore:arcore-rxjava3:1.0.0-alpha09"
implementation "androidx.xr.runtime:runtime-rxjava3:1.0.0-alpha09"
}
Alternatively, for Kotlin projects, use:
kotlin
dependencies {
implementation(“androidx.xr.runtime:runtime:1.0.0-alpha09”)
implementation(“androidx.xr.glimmer:glimmer:1.0.0-alpha02”)
implementation(“androidx.xr.proejcted:projected:1.0.0-alpha03”)
implementation(“androidx.xr.arcore:arcore:1.0.0-alpha09”)
}
By carefully following these guidelines and ensuring the correct dependencies are in place, developers can effectively leverage the Jetpack XR SDK to create compelling and immersive XR experiences for a wide range of devices. The SDK was last updated on December 8, 2025 UTC.
