i'm getting the following errors in my console. FAILURE: Build completed with 2 failures. 1: Task failed with an exception. What went wrong: Execution failed for task ':react-native-video:compileDebugJavaWithJavac'. "/>
  简体   繁体   中英

react-native run-android fails with error

运行命令时出现以下错误:<code>react-native run-android</code>

i'm getting the following errors in my console.

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • What went wrong: Execution failed for task ':react-native-video:compileDebugJavaWithJavac'.

    Compilation failed; see the compiler error output for details.

  • Try:

    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.

2: Task failed with an exception.

  • What went wrong: Execution failed for task ':react-native-firebase:compileDebugJavaWithJavac'.

    Compilation failed; see the compiler error output for details.

  • Try:

    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 5.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/4.10.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 10s 151 actionable tasks: 13 executed, 138 up-to-date 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:installDebug. Run CLI with --verbose flag for more details.

Is your android device is connected. Check it with

adb devices

If no device name shows then, no device is connected, try to connect your device correctly and run

react-native run-android

and in different terminal run

npm start

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM