The Daydream View VR headset is no longer available for purchase as of October 15, 2019. As of November 2023, previously supported devices will no longer be able to download and install Google VR Serivces (Android application ID com.google.vr.vrcore) for new users.
Stay organized with collections
Save and categorize content based on your preferences.
This document describes how to get started with Google VR for Android by
building a sample C++ app using the NDK.
Most NDK developers have their own preferred way of building and deploying
applications. This tutorial uses Android Studio, but you should feel free to
follow along in the build environment of your choice.
We'll build the following sample app in this guide:
HelloVR, a sample app that works with
any VR viewer and uses touch events to interact with the system.
Build the HelloVR sample app
First, read about HelloVR and how to build it using the SDK. The
requirements and steps to build the app using the NDK are nearly the same, with
the following key differences:
In settings.gradle, uncomment the following line to enable that sample:
include ':samples:ndk-hellovr'
Select samples-ndk-hellovr as your target.
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["\u003cp\u003eThis guide explains how to build a sample VR app for Android using the NDK and Android Studio.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can adapt the instructions to their preferred build environment if needed.\u003c/p\u003e\n"],["\u003cp\u003eThe sample app, HelloVR, is designed to work with any VR viewer and utilizes touch interactions.\u003c/p\u003e\n"],["\u003cp\u003eBefore starting with the NDK build, familiarize yourself with the HelloVR app and its SDK-based build process outlined in the linked documentation.\u003c/p\u003e\n"],["\u003cp\u003eKey differences for NDK builds include downloading the Android NDK, extracting \u003ccode\u003e.so\u003c/code\u003e files with a Gradle command, and enabling the 'ndk-hellovr' sample in the settings file.\u003c/p\u003e\n"]]],["The content details how to build the HelloVR sample app for Android using the NDK. Key actions include downloading the Android NDK, extracting the `.so` files via `./gradlew :extractNdk`, and enabling the sample in `settings.gradle` by uncommenting `include ':samples:ndk-hellovr'`. For beta APIs, `ndk-hellovrbeta` should also be uncommented. The guide uses Android Studio but allows alternative build environments. The goal is to create a VR app compatible with any viewer and uses touch events.\n"],null,["# Quickstart for Google VR SDK for Android NDK\n\nThis document describes how to get started with Google VR for Android by\nbuilding a sample C++ app using the NDK.\n\nMost NDK developers have their own preferred way of building and deploying\napplications. This tutorial uses Android Studio, but you should feel free to\nfollow along in the build environment of your choice.\n\nWe'll build the following sample app in this guide:\n\n- [HelloVR](#hellovr_sample_app), a sample app that works with any VR viewer and uses touch events to interact with the system.\n\nBuild the HelloVR sample app\n----------------------------\n\nFirst, read about [HelloVR and how to build it using the SDK](/vr/android/get-started). The\nrequirements and steps to build the app using the NDK are nearly the same, with\nthe following key differences:\n\n- Download the latest version of the\n [Android NDK](//developer.android.com/ndk/downloads/index.html).\n\n- Extract the NDK `.so` files by running:\n\n ./gradlew :extractNdk\n\n- In `settings.gradle`, uncomment the following line to enable that sample:\n\n include ':samples:ndk-hellovr'\n\n| **Note:** If you are using the [beta APIs](/vr/develop/experimental/6dof-reqs), also uncomment the `ndk-hellovrbeta` line.\n\n- Select **samples-ndk-hellovr** as your target."]]