Hi, I am very new in Unity. I was trying to make a virtual reality app for my phone, so I did the demo on the Google Developers website. It works fine in Unity, but when I download it to my phone, whenever I open it, it opens a black screen for a few seconds, and then crashes. No splash screen.
Iām getting similar issues, since v0.52, just updated to v0.6 and still getting same issues. Using Samsung Galaxy S6 Edge Android 5.1.1 I get these issues, however works fine on Nexus 5.
I have the same issues with Google Cardboard app, and other Google Cardboard apps/games from the Play Store. Sometimes I get a splash screen, sometimes not, but phone says āUnfortunately, <> has stopped.ā
You should disable the Oculus rift SDK to run on all android devices.
Itās work on the Samsung S6 because the Gear VR (from Samsung) and the Oculus Rift share the same SDK, but it wonāt work on others Android devices.
I absolutely donāt know how to disable the Oculus rift SDk, never tried it, because itās make crash my Mac each time Iāve tried to run it. Try to take off the OVRPlayerController prefab or the OVRCameraRig instance in your scene. Take them off, donāt just disable them.
I donāt know if thereās other thing to disableā¦
Youāre right it was the oculus sdk only that was causing the crashing using the google cardboard sdk. So basically just turn off VR supported in player settings and the google cardboard sdk should work. Thanks!1
I am facing the same problem. I didnt check āVirtual Reality optionā, still my application getting crashed. But I remove āGVR Audio Listenerā then application doesnot crash, but VR still not working.
Did anyone get the GoogleVR demo working with Unity 3D 5.6.0b3 or 5.6.0b4 using GoogleVRForUnity v1.10?
I am using a Nexus 5X as target device. I have had the demo working on Unity 5.4.2, but no longer after upgrading to Unity 5.5.0.
With Unity 5.6.0b3 I could get it to work on my Nexus 5X, but only when I created a completely new project.
I cannot get it to work on my old project when I import the GoogleVRForUnity v1.10 package and attempt to build it. In this scenario my player in the IDE works ok, but when the scene is built and deployed on the Nexus 5X it immediately crashes.
I would like to debug the crashing app on my Nexus 5X from within Unity, does anyone have an idea how to do that?
I would also like to get some log files from the app on the Nexus 5X. Where are they stored and how do I set the logging level?
Found the error using LogCat (part of Android Device Monitor):
ājava.lang.ClassNotFoundException: Didnāt find class ācom.google.unity.GoogleUnityActivityā on path:ā
The solution was:
Delete the following directories from the Assets directory in the Unity project:
GoogleVR
Plugin
Go to menu Assets ā Import Package ā Custom Packageā¦
Navigate to the GoogleVRForUnity.unitypackage file (is reused v1.10)
After decompression and some other steps, the Import dialog in displayed. Select all items (I then disabled Plugin ā iOS and Plugin ā x84 because I do not use them.
I also experienced crashing of Android build in Unity 5.5.1 and Google VR SDK 1.2. I needed to turn off Google VR Sound and (quite ambiguously) āVirtual Reality Supportedā in the Android settings.