Create an Android XR project

Applicable XR devices
This guidance helps you build experiences for these types of XR devices.
XR Headsets
Wired XR Glasses
AI Glasses

Your Android Studio project encompasses all the files and necessary configurations for developing an Android XR app with the Jetpack XR SDK. This includes source code, assets, test code, and build configurations.

If you're adding XR experiences to an existing app:

  1. Open your existing Android Studio project in the latest Canary build of Android Studio.
  2. Set up the Jetpack XR SDK.
  3. See the following topics for more information, depending on what types of experiences you're trying to build:

Create a new project

If you want to start a new Android XR project in Android Studio, follow these steps:

  1. Open Android Studio.

    1. If you see the Welcome to Android Studio window, click New Project.
    2. If Android Studio reopened an existing project, select File > New > New Project from the menu bar.

    Android studio welcome screen

  2. From the list of Templates, select XR, and then choose the template that corresponds to the type of XR device you want to build for.

    Android studio new project screen

  3. Click Next.

  4. Choose a name for your project, and then click Finish.

Next steps

Explore the code provided in the template, and check out the documentation for building immersive experiences for XR headsets and XR glasses, and the documentation for building augmented experiences for AI glasses.