Viro: Cannot find Symbol - new ReactViroPackage(ReactViroPackage.ViroPlatform.valueOf(BuildConfig.VR_PLATFORM))

Created on 1 Apr 2019  路  4Comments  路  Source: viromedia/viro

Description

Showing error while running the react-native run-android.. please help me

Reproducible Demo

image

Most helpful comment

@SathishSaminathan @DavidKarasek Supposedly, you need to add this line to your build config.

However, that didn't work for me because the syntax has changed, so I solved it by changing the line to:

new ReactViroPackage(ReactViroPackage.ViroPlatform.GVR)

I'm assuming if you want to use OVR, you have to change the line to:

new ReactViroPackage(ReactViroPackage.ViroPlatform.OVR_MOBILE)

but there is no official documentation for the values of ViroPlatform

All 4 comments

also having this issue

I see where the value needs to be placed in the BuildConfig.java class, but I have absolutely no idea what the value is supposed to be. I can't find anything in documentation.

I see where the value needs to be placed in the BuildConfig.java class, but I have absolutely no idea what the value is supposed to be. I can't find anything in documentation.

Okay bro... if you got something about this please let me know..

@SathishSaminathan @DavidKarasek Supposedly, you need to add this line to your build config.

However, that didn't work for me because the syntax has changed, so I solved it by changing the line to:

new ReactViroPackage(ReactViroPackage.ViroPlatform.GVR)

I'm assuming if you want to use OVR, you have to change the line to:

new ReactViroPackage(ReactViroPackage.ViroPlatform.OVR_MOBILE)

but there is no official documentation for the values of ViroPlatform

Was this page helpful?
0 / 5 - 0 ratings