ReactVision / viro

ViroReact: The AR and VR library for React Native πŸ“³πŸ’™πŸ’›πŸ€πŸ’š
MIT License
1.3k stars 150 forks source link

App crashes when trying to retrive source from local #266

Open mssakthipriya opened 4 months ago

mssakthipriya commented 4 months ago

Requirements:

Please go through this checklist before opening a new issue

Environment

Please provide the following information about your environment:

  1. Development OS: Windows
  2. Device OS & Version: Android OS version (13)
  3. Version: v2.24.0 version and React Native version
  4. Device(s): What device(s) are you are seeing the issue on ( Samsung Galaxy A33)

Description

I tried using viro react for indoor navigation between QR codes. So here I am using QR code as a marker ... and once its detected polylines are used to show the way to the next QR code ... But my first issue was compatibility ... I was using java 17 with the latest version of viro react. Since viro react is out dated and auto linking is not possible when installing viro react. I was following the guidelines in the documentation for the same: https://viro-community.readme.io/docs/installation-instructions When trying to do this: In your android/gradle/wrapper/gradle-wrapper.properties set the distributionUrl to at least 6.5:

distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip

It was giving error. So I kept distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip

The app starts and basic functionality like displaying a box or text using AR works .. but the moment I try any method that involves getting a source from local. The app crashes without any errors. eg: https://viro-community.readme.io/docs/viroartrackingtargets

ViroARTrackingTargets.createTargets({ "ben": { source: require('res/ben.png'), orientation: "Up", physicalWidth: 0.157, // real world width in meters
type: 'Image' }, "targetOne": { source: require('res/targetOne.png'), orientation: "Up", physicalWidth: 0.25, // real world width in meters type: 'Image' } });

Then I thought it might be due to compatibity issue. So I downgraded my java and tried giving the lower gradle version as per the documentation ... but now the gradle is not even detecting the lower version of java.

Reproducible Demo

Let us know how to reproduce the issue. Include a code sample, screen capture, video recording. The more information you provide, the better we can support you.

linear[bot] commented 4 months ago

XR-174 App crashes when trying to retrive source from local

robertjcolley commented 4 months ago

261 Should fix some of your downgrading issues. I'm working on fixing Android this week since there are a lot of requests for it.

Can you provide a reproducible demo please? We have a small team and the more you help me, the quicker I can help you :)