GithubHelp home page GithubHelp logo

Comments (9)

kingdcreations avatar kingdcreations commented on June 16, 2024

Hi! Could you give me an example of the code you used and tell me how you initialized your project ?
Thanks :)

from react-native-ar.

HimanshiVashist-dev avatar HimanshiVashist-dev commented on June 16, 2024

I created a React Native project by running the following command: npx react-native init demo.
Afterwards, I followed the steps outlined in the README.md file.

Step 1: I executed the command npm install react-native-ar-viewer to install the necessary package.

Step 2: I added the following code snippet to the AndroidManifest.xml file:

<meta-data android:name="com.google.ar.core" android:value="required" tools:replace="android:value" />

Step 3: I added the xmlns:tools="http://schemas.android.com/tools" attribute to the tag.

However, when I tried to run the application, I encountered an error which is mentioned in the issue.

For your reference, these are the versions of dependencies I am currently using.

image

from react-native-ar.

kingdcreations avatar kingdcreations commented on June 16, 2024

I successfully reproduced the issue, i'm currently working on it

from react-native-ar.

kingdcreations avatar kingdcreations commented on June 16, 2024

Hello ! This should be fixed, please update to 0.1.17 :)

from react-native-ar.

HimanshiVashist-dev avatar HimanshiVashist-dev commented on June 16, 2024

πŸ‘‹ Hi there!

I incorporated the change you suggested into my project and ran it using the following command:

npx react-native run-android

However, when I installed the app on my phone, I encountered the following error.

image

Could you help me rectify this issue?

from react-native-ar.

kingdcreations avatar kingdcreations commented on June 16, 2024

Thanks for your answer, could you please send me your android/app/src/main/AndroidManifets.xml ?

from react-native-ar.

HimanshiVashist-dev avatar HimanshiVashist-dev commented on June 16, 2024

Thanks for your help😊.

The project is now up and running. The problem I reported earlier has been resolved by following these steps.

Earlier I was adding meta-data tag inside acitivity tag at line 21 like this:

image

The issue is fixed by adding meta-data tag after activity tag at line 27.

from react-native-ar.

kingdcreations avatar kingdcreations commented on June 16, 2024

Alright, i guess the readme isn't really clear about it, sorry ! I'll change it asap.
I'm glad you get it working, and I'm still here if you need me again !

from react-native-ar.

HimanshiVashist-dev avatar HimanshiVashist-dev commented on June 16, 2024

Glad to hear that! Thanks for helping out :)

from react-native-ar.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.