# setting up android for VR: this is so stupid stupid stupid stupid stupid

**URL:** <https://forums.unrealengine.com/t/setting-up-android-for-vr-this-is-so-stupid-stupid-stupid-stupid-stupid/211536>\
**Category:** XR Development\
**Tags:** unreal-engine\
**Created:** [April 6, 2021, 11:03pm UTC](https://forums.unrealengine.com/t/setting-up-android-for-vr-this-is-so-stupid-stupid-stupid-stupid-stupid/211536 "2021-04-06T23:03:02Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ooghe](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ooghe/32/765288_2.png) [@ooghe](https://forums.unrealengine.com/u/ooghe)\
**Post date:** [April 8, 2021, 2:08pm UTC](https://forums.unrealengine.com/t/setting-up-android-for-vr-this-is-so-stupid-stupid-stupid-stupid-stupid/211536/3 "2021-04-08T14:08:01Z")

</div>

There were a few YouTube videos that helped me accomplish this for the first time a few weeks ago (and I am totally new at this, going through the Unreal Oculus tutorial, which was a little too advanced for me on this part). None of that was at all easy for n00b me, so I’ll pass along my notes and hope it won’t take you as long as it took me.

I’d recommend this particular video to start:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/f/2cfb4b548b565985eb51b6587134a70f61e66808.jpeg "How to make a Quest 2 Game : Unreal Engine 4") ](https://www.youtube.com/watch?v=Nqg3qlJdCCM)

then this boilerplate project helped me as proof of concept that I could get _something_ onto the Quest 2:

> [@\[FREE\]Oculus Quest Starter - a boilerplate project with environment setup tutorial](https://forums.unrealengine.com/t/free-oculus-quest-starter-a-boilerplate-project-with-environment-setup-tutorial/210173):
>
> Oculus Quest Starter is a boilerplate project ready for Oculus Quest deployment. Using this project can simplify the initial setup process. Oculus Quest is a fantastic device. However, for those who are new to Oculus Quest or Android development, setting up the environment could be really frustrating, and many beginners are likely to quit even before they managed to get their first app built and run on the Quest. If you are one of them, this project (and its documentation) will probably save …

And if you get to the point where you want to know about PSO Caching, this is relevant (even though not specifically about Quest) in addition to the official section from the Unreal Oculus tutorial:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/a/6fabcbdd9274b0950a728a215793b91082e1318f.jpeg "Unreal Engine 4: PSO Caching (Pipeline State Object) to Reduce Load Times/Hitches") ](https://www.youtube.com/watch?v=0tzrsEm6V9Q)

Additional learnings:

- only use Android version 3.5.3
- if you run the setupandoid.bat, it should have set your computers environmental variables for the SDK, NDK and java, and no need to set those paths in Unreal Project Settings (leave blank)
- if you ever need to uninstall/reinstall Android Studio, read this _including the comments_  
[How to completely uninstall Android Studio from windows(v10)? - Stack Overflow](https://stackoverflow.com/questions/39953495/how-to-completely-uninstall-android-studio-from-windowsv10)
- If you need to relaunch your project, close project, delete Saved and Intermediate folders, and reopen
- if you get a black screen, debug your project settings against the ones in the boilerplate project
- When launching, if your project seems to take forever at “Launching On”, try putting on the headset and that may awaken it and complete the build.
- Should you launch a custom profile for PSO caching purposes you must be sure to set the tick in Deploy.

---

_[View the full topic](https://forums.unrealengine.com/t/setting-up-android-for-vr-this-is-so-stupid-stupid-stupid-stupid-stupid/211536)._
