Open skizzo opened 5 years ago
We have some steps in our latest release notes for 2.13 about Android setup starting from -> Note: Instructions for updating Android project to Target API level 28.
Release Notes link -> https://docs.viromedia.com/docs/releases
Can you follow those steps and see if they resolve your issue?
In my case that was importing 'package.json' in react-native js app. After removing it everything works perfectly.
If we can't import package.json, how else should we get the version number into things like api calls?
We updated the gist reference above recently -> https://gist.github.com/achuvm/fe0136818158bec2cdf4d1cd11053f6d
updating to 0.60.6 solved the problem for me
Environment
react-viro 2.13.0
,react-native 0.57.7
Description
./gradlew assembleGvrRelease
always fails, with different errors depending on what steps have been taken.Reproducible Demo
1: [RELEASE] Error after following install instructions
After following the instructions of this gist to integrate
react-viro
into Android, running./gradlew assembleGvrRelease
results in this error:2: [RELEASE] Error after adding default flavor dimension
Nothing in the docs suggests how to fix this (easily reproducible) error, so I assumed that it only happens in my current environment. Googling the error suggested that I add
flavorDimensions "default"
above theproductFlavors
block inandroid/app/build.gradle
, so after doing that, the error above doesn't show any more when running./gradlew assembleGvrRelease
, but this one:3: [DEBUG] Build error when running react-native run-android --variant=arDebug
Now when I run
react-native run-android --variant=arDebug
with a connected physical device (not in emulator), I get the following error:Since I'm not exactly an Android expert, I have no idea how to solve this issue. Needless to say that googling this error didn't turn out to be successful, so please give me your thoughts on this. Thanks!