reactnativecn / react-native-website

React Native 中文网
https://reactnative.cn
MIT License
218 stars 328 forks source link

大神 有谁知道 这个是咋回事吗 搞了一下午了 唉 Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 #319

Closed xiaoyaci closed 2 years ago

xiaoyaci commented 3 years ago

:\ReactNativeItem\reactnativedemo\android>yarn android yarn run v1.22.10 $ 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... info Launching emulator... info Successfully launched emulator. info Installing the app... :ReactNative:Running '[node, -e, console.log(require('react-native/cli').bin);]' command failed.

FAILURE: Build failed with an exception.

BUILD FAILED in 1s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 :ReactNative:Running '[node, -e, console.log(require('react-native/cli').bin);]' command failed. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

panZongLin commented 3 years ago

试试看这上面说的 https://stackoverflow.com/questions/59422584/react-native-build-failed-in-android-react-native-community-cli-platform-andro

DBAAZzz commented 3 years ago

检查一下是不是本地的8081端口被其他服务占用了

github-actions[bot] commented 2 years ago

👋 Hey there, it looks like there has been no activity on this issue in the last 90 days. Has the issue been fixed, or does it still require the community attention? This issue will be closed in the next 7 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 2 years ago

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.