mobfishgmbh / Cardboard-VR-Unity-SDK

Apache License 2.0
56 stars 11 forks source link

[Android] - Run VR scene error and crashed #84

Closed imkrystal closed 3 years ago

imkrystal commented 3 years ago

Hi Team.

In iOS, it's seem OK, but in Android (Galaxy S9), when I run VR Scene it became error:

Screenshot_20201109-131804_FOD_VR 1

When I press QR code, app will be crashed. Here is my error log:

image

Can you help me resolve this problem?

Thank you so much.

Best Regards!

imkrystal commented 3 years ago

Hi @cai-mobfish @cdytoby Can you help me resolve this problem? Thank you so much.

cdytoby commented 3 years ago

Hello, sorry for the late response, it's been busy so I'm not able to respond to the tickets quickly.

To this question, it's because the protocol buffer for android implementation is not included.

You should create custom gradle file for android build, and include some android packages.

https://github.com/mobfishgmbh/Cardboard-VR-Unity-SDK/wiki/Usage
Detail can be found here, in the section "Additional Settings for Android"

imkrystal commented 3 years ago

Yeah. I check "https://github.com/mobfishgmbh/Cardboard-VR-Unity-SDK/wiki/Usage" and finally I fixed my problem. Cause: I put everything your plugin folder in another folder and when I run VR mode, maybe it not file classes. Now, I tested on GalaxyS9 and now it worked!!! Maybe I will close this issue ;) Thank you so much. Best Regards!