Search Unity

Unity APK doesn't open on Android

Discussion in 'AR/VR (XR) Discussion' started by Cheezy-Neezy, Jul 28, 2016.

  1. Cheezy-Neezy

    Cheezy-Neezy

    Joined:
    Jul 26, 2016
    Posts:
    3
    Hey everyone,

    I made a scene in unity and built it on my phone so I can use it with google Cardboard. But sadly it doesn't work. When I try to open it I get a black screen for about 1 second and then I return to the normal screen.

    Here is the Error Code: http://pastebin.com/Pgwz21vX

    Which confuses me because Im not using Audio at all and I thought I had it turned off. Also I never chose the Oculus but its also mentioned in the error Code. I used the script from a Youtube Tutorial for Autowalk

    http://pastebin.com/uMcw6bnp

    I downloaded the SDK from https://developers.google.com/vr/unity/download.

    Hope anyone can help me with this issue.
     
  2. TDArlt

    TDArlt

    Joined:
    May 22, 2013
    Posts:
    23
    For cardboard, (as far as I know) you do have to switch off the "VR" option in the player settings, as VR is only meant to support the Oculus environment (Gear VR) on Android.

    If this is already the case, try with a blank project, then import just the package from google and try again until you find out what's the component causing the trouble.
     
  3. Cheezy-Neezy

    Cheezy-Neezy

    Joined:
    Jul 26, 2016
    Posts:
    3

    Oh Hells Yeah! Thanks!!!!!! Seriously I spent 8 hours yesterday trying to figure it out. As a total code noob I had no clue where to begin!! Thank you thank you thank you!
    Now all that is left is to get the orientation of the screen correct

    Edit: I got the orientation but now the viewer movement doesn't correlate with my head movement. Any ideas?
     
    Last edited: Jul 28, 2016