ViroReact render issue in debug build android

242 views Asked by At

I am using ViroARSampleApp code to demonstrates placing, rotating and dragging objects in AR. Everything is working fine when I run react-native run-android --variant=arDebug but when I detach data cable and run the app then the application is running fine but objects are not rendered.

I tried to make proper APK file and install to the device but facing the same issue. I tried these commands to make build react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/, cd android, ./gradlew assemblearDebug. i also tried ./gradlew bundlearDebugJsAndAssets.

I am new in react native and AR, kindly suggest me the solution for this issue.

1

There are 1 answers

0
haider 792 On

try this

./gradlew assembleGvrRelease