错误:命令失败:gradlew.bat app:installDebug -PreactNativeDevServerP



当我使用 npx 运行此应用程序时,我创建了一个新的反应原生应用程序 反应本机运行-安卓 此错误显示

BUILD FAILED in 1m 4s
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/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.

看起来您尚未在计算机中设置Android环境。如果您还没有,请点击此链接并选择 React Native CLI 快速入门 使用每个平台的开发配置进行本机快速入门

最新更新