viro icon indicating copy to clipboard operation
viro copied to clipboard

Android compile error occurs in viro v2.17.

Open nuribom01 opened this issue 4 years ago • 1 comments

  • [ 0 ] Review the documentation: https://docs.viromedia.com/
  • [ 0 ] Search for existing issues: https://github.com/viromedia/viro
  • [ 0 ] Use the latest ViroReact release: https://docs.viromedia.com/docs/releases

Environment

Please provide the following information about your environment:

  1. Development OS: Mac
  2. Device OS & Version: android 10
  3. Version: ViroReact version : 2.17.0 and React Native version : 0.59.9
  4. Device(s): LG Velvet (LM-G900N)

Description

Describe your issue in detail. Include screenshots if needed. If this is a regression, let us know.

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.

I use viro v2.17 source. However, a compilation error occurs when building an android device as shown below. The 'npm start' command works normally in the testbed app. Why does an error occur when building directly on the android device?

How to solve this problem?

==> Task 'installGvrDebug' not found in project ':app'. Some candidates are: 'installDebug'.

[Terminal command]

Nuribomui-MacBookPro:ViroSample nuribom$ react-native run-android --variant=gvrDebug (node:26433) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) info Starting JS server... info Building and installing the app on the device (cd android && ./gradlew app:installGvrDebug)...

FAILURE: Build failed with an exception.

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

  • Try: Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 576ms error Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/getting-started.html error Command failed: ./gradlew app:installGvrDebug. Run CLI with --verbose flag for more details. ....

nuribom01 avatar Feb 02 '21 05:02 nuribom01

still same problem occurs

k2an avatar Dec 16 '21 18:12 k2an