Please provide the following information about your environment:
Development OS: Windows
Device OS & Version: Android OS version (13)
Version: v2.24.0 version and React Native version
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:
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.
Requirements:
Please go through this checklist before opening a new issue
Environment
Please provide the following information about your environment:
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.