Right this moment, we’re launching the developer preview of the Android XR SDK – a complete growth package for Android XR. It is the latest platform within the Android household constructed for prolonged actuality (XR) headsets (and glasses sooner or later!). You’ll have countless alternatives to create and develop experiences that mix digital and bodily worlds, utilizing acquainted Android APIs, instruments and open requirements created for XR. All of this implies: should you construct for Android, you are already constructing for XR! Learn on to get began with growth for headsets.
With the Android XR SDK you’ll be able to:
- Break freed from conventional screens by spatializing your app with wealthy 3D parts, spatial panels, and spatial audio that carry a pure sense of depth, scale, and tangible realism
- Transport your customers to a fantastical digital area, or have interaction with them in their very own houses or workplaces
- Benefit from pure, multimodal interplay capabilities corresponding to palms and eyes
“We imagine Android XR is a game-changer for storytelling. It permits us to merge narrative depth with superior interactive options, creating an immersive world the place audiences can have interaction with characters and tales like by no means earlier than.”
– Jed Weintrob, Associate at 30 Ninjas
Your apps on Android XR
The Android XR SDK is constructed on the prevailing foundations of Android app growth. We’re additionally bringing the Play Retailer to Android XR, the place most Android apps will mechanically be made out there with none extra growth effort. Customers will be capable to uncover and use your present apps in an entire new dimension. To distinguish your present Compose app, chances are you’ll opt-in, to mechanically spatialize Materials Design (M3) parts and Compose for adaptive layouts in XR
Apps optimized for giant screens benefit from sizing capabilities in Android XR
The Android XR SDK has one thing for each developer:
- Constructing with Kotlin and Android Studio? You may really feel proper at residence with the Jetpack XR SDK, a collection of acquainted libraries and instruments to simplify growth and speed up productiveness.
- Utilizing Unity’s real-time 3D engine? The Android XR Extensions for Unity offers the packages it’s worthwhile to construct or port highly effective, immersive experiences.
- Creating on the net? Use WebXR so as to add immersive experiences supported on Chrome.
- Working with native languages like C/C++? Android XR helps the OpenXR 1.1 commonplace.
Creating with Jetpack XR SDK
The Jetpack XR SDK contains new Jetpack libraries purpose-built for XR. The highlights embody:
- Jetpack Compose for XR – allows you to declaratively create spatial UI layouts and spatialize your present 2D UI constructed with Compose or Views
- ARCore for Jetpack XR – brings highly effective notion capabilities on your app to grasp the true world
“With Android XR, we are able to carry Calm straight into your world, capturing the senses and permitting you to expertise it in a deeper and extra transformative approach. By collaborating intently with the Android XR crew on this cutting-edge expertise, we’ve reimagined methods to create a way of depth and area, leading to a degree of immersion that immediately helps you’re feeling extra current, centered, and relaxed.”
– Dan Szeto, Vice President at Calm Studios
Kickstart your Jetpack XR SDK journey with the Hello XR Sample, an easy introduction to the important options of Jetpack Compose for XR.
Study extra about developing with the Jetpack XR SDK.
The JetNews pattern app is an Android large-screen app tailored for Android XR
We’re additionally introducing new instruments and capabilities to the newest preview of Android Studio Meerkat to spice up productiveness and simplify your creation course of for Android XR.
- Use the brand new Android XR Emulator to create a virtualized XR system for deploying and testing apps constructed with the Jetpack XR SDK. The emulator contains XR-specific controls for utilizing a keyboard and mouse to navigate an emulated digital area.
- Use the Android XR template to get a jump-start on creating an app with Jetpack Compose for XR.
- Use the up to date Structure Inspector to examine and debug spatialized UI parts created with Jetpack Compose for XR.
Study extra concerning the XR enabled instruments in Android Studio and the Android XR Emulator.
The Android XR Emulator in Android Studio has new controls to discover 3D area inside the emulator
Creating with Unity
We have partnered with Unity to natively combine their real-time 3D engine with Android XR beginning with Unity 6. Unity is introducing the Unity OpenXR: Android XR bundle for bringing your multi-platform XR experiences to Android XR.
Unity is including Android XR assist to those standard XR packages:
We’re additionally rolling out the Android XR Extensions for Unity with samples and revolutionary options corresponding to mouse interplay profile, setting mix mode, customized hand mesh, object monitoring, and extra.
“Having already introduced Demeo to most commercially out there platforms, it is protected to say we had been impressed with the method of adapting the sport to run on Android XR.”
– Johan Gastrin, CTO at Resolution Games
Try our getting started guide for unity and Unity’s blog post to be taught extra.
Creating for the Net
Chrome on Android XR helps the WebXR commonplace. If you happen to’re constructing for the online, you’ll be able to improve present websites with 3D content material or construct new immersive experiences. You may as well use full-featured frameworks like three.js, A-Frame, or PlayCanvas to create digital worlds, or you should use a less complicated API like model-viewer so your customers can visualize merchandise in an e-commerce website. And since WebXR is an open standard, the identical experiences you construct for cell AR gadgets or devoted VR {hardware} seamlessly work on Android XR.
Study extra about developing with WebXR.
Chrome on Android XR helps WebXR options together with depth maps permitting digital objects to work together with actual world surfaces
Constructed on Open Requirements
We’re persevering with the Android custom of constructing with open requirements. On the coronary heart of the Android notion stack is OpenXR – a high-performance, cross-platform API centered on portability. Android XR is compliant with OpenXR 1.1, and we’re additionally increasing the Open XR requirements with modern vendor extensions to introduce highly effective world-sensing capabilities corresponding to:
- AI-powered hand mesh, designed to adapt to the form and measurement of palms to raised signify the range of your customers
- Subtle light estimation, for lighting your digital content material to match real-world lighting situations
- New trackables that allow you to carry actual world objects like laptops, telephones, keyboards, and mice right into a digital setting
The Android XR SDK additionally helps open commonplace codecs corresponding to glTF 2.0 for 3D fashions and OpenEXR for high-dynamic-range environments.
Constructing the longer term collectively
We could not be extra proud or excited to be saying the Developer Preview of the Android XR SDK. We’re releasing this developer preview, as a result of we wish to construct the way forward for XR along with you. We welcome your feedback and might’t wait to work with you and construct your concepts and ideas into the platform. Your ardour, experience, and daring concepts are completely important as we proceed to construct Android XR.
We look ahead to interacting together with your apps, reimagined to benefit from the distinctive spatial capabilities of Android XR, utilizing acquainted instruments like Android Studio and Jetpack Compose. We’re keen to go to the wonderful 3D worlds you construct utilizing highly effective instruments and open requirements like Unity and OpenXR. Most of all, we are able to’t wait to go on this journey with all of you that make up the wonderful group of Android and Unity builders.
To get began creating and growing for Android XR, try developer.android.com/develop/xr the place you will discover all the instruments, libraries and sources it’s worthwhile to create with the Android XR SDK! In case you are serious about having access to prerelease {hardware} and collaborating with the Android XR crew, specific your curiosity to take part in an Android XR Developer Bootcamp in 2025 by filling out this form.