Google Cardboard SDK script errors

So I downloaded the latest version of the Google Cardboard SDK and the second it was imported into the scene I recieved three errors that won’t allow me to play the game.

*Assets/GoogleVR/Scripts/Controller/Internal/Emulator/EmulatorClientSocket.cs(79,17): error CS1061: Type System.Diagnostics.Process' does not contain a definition for Close’ and no extension method Close' of type System.Diagnostics.Process’ could be found (are you missing a using directive or an assembly reference?)
Assets/GoogleVR/Scripts/Controller/Internal/Emulator/EmulatorClientSocket.cs(70,17): error CS0200: Property or indexer System.Diagnostics.Process.StartInfo' cannot be assigned to (it is read only) **Assets/GoogleVR/Scripts/Controller/Internal/Emulator/EmulatorClientSocket.cs(66,64): error CS1729: The type System.Diagnostics.ProcessStartInfo’ does not contain a constructor that takes `2’ arguments"

Has anyone else encountered this issue and/or know how to fix it? I don’t know coding very well and i’m not sure what to do from here.

Thanks!

I just hit this exact same problem. Prior to having the problem I had installed a new version of my project out of source control and switched from 5.3.5p4 to 5.3.5f1 and back again. Not sure if either of these steps triggered the problem

The issue seems to be with the script assemblies from Diagnostics module that Google VR is using. In the broken version the System.Diagnostics.ProcessStartInfo class is missing a number of members, as if it was using an older version of the class.

On another machine where the project built fine, the class had all the members.

To solve it, I shutdown Unity and deleted the project/Library directory that Unity generates, this forced it to re-import all the assets (which is slow) and rebuild all the assemblies.

I then reloaded the project in Unity and the problem was fixed.

Unfortunately I can’t guarantee that this is the thing that fixed it, as I was also making sure 5.3.5p4 was fully installed.

Had this happen again today and figured out what the real problem was (at least on my setup).

The build target was set to Web client I the editor which greatly restricts the set of functionality available.

Suggest trying to set the target to Android (build settings…)

Jules

Just set the tag “MainCamera” to your camera
This solves the problem to the GVR Physics raycaster

This is likely caused by having your build target set to Web or some other unsupported target. Change the build target to Standalone or Android, and that should solve your problem.