Skip to content

Instantly share code, notes, and snippets.

@ygumattos
Created April 16, 2020 11:28
Show Gist options
  • Save ygumattos/f0e8927f50eea59a72f5c1b05493e62c to your computer and use it in GitHub Desktop.
Save ygumattos/f0e8927f50eea59a72f5c1b05493e62c to your computer and use it in GitHub Desktop.
sudo 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 8 workers...
info Starting JS server...
/bin/sh: 1: adb: not found
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...
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 1s
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 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 1s
at makeError (/home/ygormattos/Documents/www/Rocketseat/go-stack/stage01/react-native/mobile/node_modules/execa/index.js:174:9)
at /home/ygormattos/Documents/www/Rocketseat/go-stack/stage01/react-native/mobile/node_modules/execa/index.js:278:16
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async runOnAllDevices (/home/ygormattos/Documents/www/Rocketseat/go-stack/stage01/react-native/mobile/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:94:5)
at async Command.handleAction (/home/ygormattos/Documents/www/Rocketseat/go-stack/stage01/react-native/mobile/node_modules/@react-native-community/cli/build/index.js:186:9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment