googlevr / gvr-unity-sdk

Google VR SDK for Unity
http://developers.google.com/vr/unity/
Other
2.71k stars 1.09k forks source link

Error when I run the demo en Android device #1034

Open sanylop opened 5 years ago

sanylop commented 5 years ago

SPECIFIC ISSUE ENCOUNTERED

When I run the demo "HelloVR" i can't view in double screen in my device and in Android Studio I have this messages:

2019-05-18 18:42:01.189 6564-6564/? E/Unity: Exception while trying to get method initialize. initialize [class android.app.Activity, class android.content.Context, class android.view.SurfaceView, boolean, class android.os.Handler] 2019-05-18 18:42:01.189 6564-6564/? E/Unity: Unable to create method: initialize 2019-05-18 18:42:01.189 6564-6564/? E/Unity: Google VR Error [null]: Exception while trying to intialize Unity Google VR Library. Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference 2019-05-18 18:42:01.189 6564-6564/? E/Unity: Google VR Error [null]: Unable to initialize GoogleVR library. 2019-05-18 18:42:01.189 6564-6564/? E/Unity: Unable to initialize Google VR subsystem. 2019-05-18 18:42:01.189 6564-6579/? E/GvrShimUnity: destroyShim uninitialized 2019-05-18 18:42:01.205 6564-6564/? E/Unity: Error trying to call delegated method unload. null 2019-05-18 18:42:01.205 6564-6564/? E/Unity: Exception while trying to get method initialize. initialize [class android.app.Activity, class android.content.Context, class android.view.SurfaceView, boolean, class android.os.Handler] 2019-05-18 18:42:01.205 6564-6564/? E/Unity: Unable to create method: initialize 2019-05-18 18:42:01.205 6564-6564/? E/Unity: Google VR Error [null]: Exception while trying to intialize Unity Google VR Library. Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference 2019-05-18 18:42:01.205 6564-6564/? E/Unity: Google VR Error [null]: Unable to initialize GoogleVR library. 2019-05-18 18:42:01.205 6564-6564/? E/Unity: Unable to initialize Google VR subsystem. 2019-05-18 18:42:01.205 6564-6579/? E/GvrShimUnity: destroyShim uninitialized 2019-05-18 18:42:01.221 6564-6564/? E/Unity: Error trying to call delegated method unload. null 2019-05-18 18:42:01.422 6564-6579/? E/GvrShimUnity: initShimWithContext gvr context pointer cannot be null 2019-05-18 18:42:01.435 6564-6579/? E/Unity: GvrShimUnity_initShimWithContext returned error.

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

2019-05-18 18:42:01.435 6564-6579/? E/GvrShimUnity: resumeShim shim uninitialized 2019-05-18 18:42:01.436 6564-6579/? E/Unity: GvrShimUnity_resumeShim returned error.

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

2019-05-18 18:42:01.440 6564-6579/? E/Unity: VR is disabled

HARDWARE/SOFTWARE VERSIONS

STEPS TO REPRODUCE THE ISSUE

  1. Run demo "HelloVR" from Unity in my Android device
rusmaxham commented 5 years ago

Do you have VR enabled in Player Settings > XR Settings with either Daydream or Cardboard VR SDKs added?