question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting React-Viro Build working on android in windows environment

See original GitHub issue

Hello, I am new to react-native development.

I have been trying to get a React-Viro project to successfully build onto my mobile S8 android device and have been struggling a lot. I am in a windows 10 environment using git-bash.

First Approach I have been following the steps on the react-viro quickstart website.

  1. react-native init ProjectAR --version0.57.7
  2. cd ViroSample
  3. npm install -S -E react-viro
  4. copy the files from node_modules\react-viro\bin\files\javascript* to the root
  5. In App.js assign API Key.
  6. In index.android.js change to the name of my project AppRegistry.registerComponent('ProjectAR', () => App);

When I run react-native run-android I get the error on my phone

Unable to resolve module 'react-native/Libraries/DeprecatedPropTypes/DeprecatedStyleSheetPropType from …\ProjectAR\node_modules\react-viro\components\ViroImage.js

Module ‘react-native/Libraries/DeprecatedPropTypes/DeprecatedStyleSheetPropType’ does not exist in the current Haste module map

Second Approach

  1. npm install -g react-viro-cli
  2. react-viro init NewArProject
  3. cd NewArProject
  4. ./setup-ide.sh android
  5. In App.js assign API Key.

When I run react-native run-android I get the error in my terminal

FAILURE: Build failed with an exception.

What went wrong: Task ‘installDebug’ not found in project ‘:app’. Some candidates are: ‘installArDebug’, ‘installGvrDebug’, ‘installOvrDebug’.

I go into my android directory and do ./gradlew app:installArDebug

But I get an error

Execution failed for task ‘:app:generateArDebugBuildConfig’.

Please help. Thanks

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
VikAdvanicommented, May 6, 2019

Hi @kolesnikovakate, @jungley, To solve your issue please add the --variant option to the react-native run-android command. If you try the following you should be able to run without error:

react-native run-android --variant=gvrDebug

Let me know if that doesn’t work for you 😃

3reactions
dam00ncommented, Apr 17, 2019

try -> react-native init ProjectAR --version0.59.3

We recently upgraded to RN 0.59.3 and this section of the documentation was not updated. It is now corrected

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting React-Viro Build working on android - Stack Overflow
I am in a windows 10 environment using git-bash. First Approach I have been following the steps on the react-viro quickstart website. 1)...
Read more >
Getting React-Viro Build working on android in windows environment
Hello, I am new to react-native development. I have been trying to get a React-Viro project to successfully build onto my mobile S8...
Read more >
Run AR Apps in Android Emulator | ARCore
Use the Android Emulator to test AR scenarios without a physical device. The Android Emulator lets you run ARCore apps in a virtual...
Read more >
Intro to VR in React Native with ViroReact - Topcoder
The Viro CLI must first be downloaded and installed. This allows you to create a React Native project with all of the dependencies...
Read more >
How To Build Your First VR App with ViroReact, React Native ...
To install both the command line tools, open up a terminal window and run the following command. After the installation, make sure you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found