RNandroid 遇到bug

44 阅读1分钟
info Opening app on Android... info A dev server is already running for this project on port 8081. info Installing the app... info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: <https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor> :ReactNative:Running '[node, -e, try {console.log(require('@react-native-community/cli').bin);} catch (e) {console.log(require('react-native/cli').bin);}]' command failed. FAILURE: Build failed with an exception. * Where: Settings file '/Users/linanan/Desktop/reactNativeApp/android/settings.gradle' line: 2 * What went wrong: A problem occurred evaluating script. > A problem occurred starting process 'command 'node'' * 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>.

command node 的报错问题,原因是java代码出现了问题,需要 java项目执行一下

image.png

重新跑一下java项目 一般会自动执行,但是有时候可以在终端执行