Google cardboard for unity build errors

497 Views Asked by At

The problem

I'm trying to build google cardboard for unity on my android and getting build errors

The error

enter image description here

also I don't know if it's related but when I try to play the HelloCardboard scence, it keeps throwing this error: enter image description here

What i've tried

  • changing the player settings (API, target arch...)
  • emulated several phones in android studio
  • downloaded JDK and android SDK tools instead of the recommended
1

There are 1 best solutions below

0
D_Central On

The error says you should initialize the XR Loader.

There is a checkbox for "Initialize XR on Startup" in Project Settings, under XR Plug-in Management section. And you have to select the Plug-in Provider, which in this case should be "Cardboard XR Plugin".

You may also initialize the Loader at runtime in the code if you instead want the app to start in 3d. It's all in the documentation.