Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invariant Violation:requireNativeComponent:"VRTText"was not found in the UIManager #769

Open
acndur1a opened this issue Oct 29, 2019 · 23 comments

Comments

@acndur1a
Copy link

acndur1a commented Oct 29, 2019

Environment

  1. Development OS: Windows 10
  2. Device OS & Version: What Android OS version 7.1.2
  3. Version: ViroReact version 2.17.0 and 0.59.10 React Native version
  4. Device(s): LG K9

Error:
Invariant Violation:requireNativeComponent:"VRTText"was not found in the UIManager

I have followed installation instructions for Viroreact AR tutorial direct from docs.

I have also updated the AndroidManifest.xml as it was recommended in related issues.

Error message still appears after npm start.

@djpane
Copy link

djpane commented Nov 18, 2019

Did you follow all the integration instructions in th docs? Also bear in mind that officially ViroMedia is supported up to RN 0.59.9.

@SiavashBamshadnia
Copy link

SiavashBamshadnia commented Jan 8, 2020

Thanks for your answer @djpane
I have the same issue
I did the integration instructions but this error still occurs.
Could you please put a video for these instructions?

@SiavashBamshadnia
Copy link

@dthian Can you help me please?

@fahadhaq
Copy link

fahadhaq commented Apr 5, 2020

@SiavashBamshadnia Did you manage to fix this error?

@SiavashBamshadnia
Copy link

SiavashBamshadnia commented Apr 5, 2020

Did you manage to fix this error

@fahadhaq No

@alishgiri
Copy link

You should run the setup-ide.sh file present on the root of your project,
./setup-ide.sh --android
or
./setup-ide.sh --ios
or
./setup-ide.sh --all

@phuocantd
Copy link

You should run the setup-ide.sh file present on the root of your project,
./setup-ide.sh --android
or
./setup-ide.sh --ios
or
./setup-ide.sh --all

What is setup-ide.sh?

@RoyceLeonD
Copy link
Collaborator

RoyceLeonD commented May 14, 2020

@phuocantd It is the script to update your dev environment, in order to create native ios/ android apps.

@Div8285
Copy link

Div8285 commented May 20, 2020

Does anyone manage to run react-viro to work on a standalone app for ViroReact + React Native 0.62. I have used patches from
https://gist.github.com/akeemphilbert/8323a7b71e682469b922920a624b35a8
. After using these patches I have the same issue as
#634
. without using these patches I have the same issue as
#769
Or can you please suggest a way to run on any other version of react

@tellypresence
Copy link

tellypresence commented Jun 4, 2020

Same problem on android.

Followed the setup procedure; installed packages and ran commands in terminal, including (but not limited to) the following on host workstation (PC):

$ npm install -g react-viro-cli
$ react-viro init ViroSample --verbose

Note: ran setup-ide.sh (suggested in several places as solution to this issue) which does not help

~/ViroSample$ ./setup-ide.sh --android
~/ViroSample$ adb reverse tcp:8081 tcp:8081
~/ViroSample$ npm start

Launching the app on tethered android device, the host connection and initial AR/VR menu display properly...


...but then halted with the error described earlier in this ticket when selecting "AR" button

P.S. our application is AR only, VR of no use to us

@ajeets1978
Copy link

I have the same issue.

@blckwngd
Copy link

Me too. I hope someone will come up with a solution - I don´t have one :-(

@hokaiyipFS
Copy link

hokaiyipFS commented Sep 25, 2020

have you tried pod install?

add the following lines in your pod file

pod 'ViroReact', :path => '../node_modules/react-viro/ios/'
pod 'ViroKit_static_lib', :path => '../node_modules/react-viro/ios/dist/ViroRenderer/static_lib'

then run pod install, then the app again?

@blckwngd
Copy link

I am building for Android, so pod install won't do anything for me :(

@hokaiyipFS
Copy link

@anto-pravin
Copy link

I just fixed this error by following these steps

  • Go to: node_modules/metro-config/src/defaults/backlist.js and replace sharedBlacklist

with this:

var sharedBlacklist = [
  /node_modules[\/\\]react[\/\\]dist[\/\\].*/,
  /website\/node_modules\/.*/,
  /heapCapture\/bundle\.js/,
  /.*\/__tests__\/.*/
];
  • Open a terminal and run:

react-native start

  • Wait for the dependency graph to load,
  • Open one more terminal and run:

react-native run-android --variant=gvrDebug

Note: We have to specify the variant while running

Worked for me : )

@jahau
Copy link

jahau commented Jan 20, 2021

I just fixed this error by following these steps

  • Go to: node_modules/metro-config/src/defaults/backlist.js and replace sharedBlacklist

with this:

var sharedBlacklist = [
  /node_modules[\/\\]react[\/\\]dist[\/\\].*/,
  /website\/node_modules\/.*/,
  /heapCapture\/bundle\.js/,
  /.*\/__tests__\/.*/
];
  • Open a terminal and run:

react-native start

  • Wait for the dependency graph to load,
  • Open one more terminal and run:

react-native run-android --variant=gvrDebug

Note: We have to specify the variant while running

Worked for me : )

Not working.

  • What went wrong:
    Task 'installGvrDebug' not found in project ':app'. Some candidates are: 'installDebug'.

@datptScuti
Copy link

datptScuti commented Jan 22, 2021

you can run
./setup-ide.sh --all && react-native run-android --variant=gvrDebug

@jahau
Copy link

jahau commented Feb 2, 2021

$ ./setup-ide.sh --all && react-native run-android --variant=gvrDebug
==== Running Android Setup Script ===
Running with verbose logging
Editing MainApplication.java
sed: -e expression #1, char 0: no previous regular expression
sed: -e expression #1, char 0: no previous regular expression
Updating settings.gradle
Updating Project's build.gradle
Updating App's build.gradle
Updating AndroidManifest.xml
Copying over OVR's additional manifest
Updating gradle-wrapper.properties
Updating strings.xml
==== Running iOS Setup Script ===
running with verbose logging
/usr/bin/sed: can't read s/VIRO_PROJECT_NAME/ViroSample/g: No such file or directory
./node_modules/react-viro/bin/ios-setup.sh: line 32: pod: command not found
./node_modules/react-viro/bin/ios-setup.sh: line 35: ruby: command not found
./node_modules/react-viro/bin/ios-setup.sh: line 38: /usr/libexec/PlistBuddy: No such file or directory
./node_modules/react-viro/bin/ios-setup.sh: line 39: /usr/libexec/PlistBuddy: No such file or directory
/usr/bin/sed: can't read s/VIRO_PROJECT_NAME/ViroSample/g: No such file or director
  • What went wrong:
    Could not compile build file 'C:\temp\ViroSample\android\build.gradle'.

startup failed:
build file 'C:\temp\ViroSample\android\build.gradle': 12: unexpected token: } @ line 12, column 1.
}
^

1 error

@vlkpa
Copy link

vlkpa commented Feb 4, 2021

$ ./setup-ide.sh --all && react-native run-android --variant=gvrDebug
==== Running Android Setup Script ===
Running with verbose logging
Editing MainApplication.java
sed: -e expression #1, char 0: no previous regular expression
sed: -e expression #1, char 0: no previous regular expression
Updating settings.gradle
Updating Project's build.gradle
Updating App's build.gradle
Updating AndroidManifest.xml
Copying over OVR's additional manifest
Updating gradle-wrapper.properties
Updating strings.xml
==== Running iOS Setup Script ===
running with verbose logging
/usr/bin/sed: can't read s/VIRO_PROJECT_NAME/ViroSample/g: No such file or directory
./node_modules/react-viro/bin/ios-setup.sh: line 32: pod: command not found
./node_modules/react-viro/bin/ios-setup.sh: line 35: ruby: command not found
./node_modules/react-viro/bin/ios-setup.sh: line 38: /usr/libexec/PlistBuddy: No such file or directory
./node_modules/react-viro/bin/ios-setup.sh: line 39: /usr/libexec/PlistBuddy: No such file or directory
/usr/bin/sed: can't read s/VIRO_PROJECT_NAME/ViroSample/g: No such file or director
  • What went wrong:
    Could not compile build file 'C:\temp\ViroSample\android\build.gradle'.

startup failed:
build file 'C:\temp\ViroSample\android\build.gradle': 12: unexpected token: } @ line 12, column 1.
}
^

1 error

same as you... after run ./setup-ide.sh android

@ovy9086
Copy link

ovy9086 commented Nov 5, 2021

same issue. this repo seems kinda dead to me ?

@iamalinski
Copy link

I have a solution here: #748 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests