React-Native project does not work on mobile and nor on emulator command React-Native run-android while running appears this error below

Asked

Viewed 789 times

-2

inserir a descrição da imagem aquiErrors in the low range: : meuApp smartMoney>React-Native run-android info Running jetifier to migrate Libraries to Androidx. You can disable it using "-no-jetifier" flag. Jetifier found 967 file(s) to forward-jetify. Using 4 Workers... info Starting JS server... The system cannot find the specified path. info Launching Emulator... error Failed to Launch Emulator. Reason: No emulators found as an output of emulator -list-avds. warn Please Launch an Emulator Manually or connect a device. Otherwise app may fail to Launch. info Installing the app... Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for Details

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.0.1/userguide/command_line_interface.html#sec:command_line_warnings

FAILURE: Build failed with an Exception.

  • What Went Wrong: Task 'installDebug' not found in project ':app'.

  • 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

BUILD FAILED IN 34s

error Failed to install the app. Make sure you have the Android Development Environment set up: https://reactnative.dev/docs/getting-started.html#android-Development-Environment. Run CLI with --verbose flag for more Details. Error: Command failed: gradlew.bat app:installDebug -Preactnativedevserverport=8081

FAILURE: Build failed with an Exception.

  • What Went Wrong: Task 'installDebug' not found in project ':app'.

  • 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

BUILD FAILED IN 34s

at makeError (C:\meuApp\smartMoney\node_modules\execa\index.js:174:9)
at C:\meuApp\smartMoney\node_modules\execa\index.js:278:16
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async runOnAllDevices (C:\meuApp\smartMoney\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:5)
at async Command.handleAction (C:\meuApp\smartMoney\node_modules\@react-native-community\cli\build\index.js:186:9)

please someone help me I’m three days can’t solve I installed everything again and nothing

1 answer

0

Make sure you are doing everything correctly: First build on android-studio to check the project. Then go to your terminal and in your project folder enter the android folder:

android cd

After entering, type the following command

./gradlew installDebug

and wait.

Don’t forget to run the application on android-studio earlier.

  • Ruan Duarte, sorry friend but I’m new in this development environment and I’m at the beginning of everything I’m still studying what I mean by "BUILD"?

  • Open android-studio and load your project, automatically it will build, expect to give the successful response and proceed to the terminal

  • ixi partner did not work or cmd does not recognize this command put a photo to better see the errors

Browser other questions tagged

You are not signed in. Login or sign up in order to post.