Reactjs 无法通过react native run android在android上启动react native

Reactjs 无法通过react native run android在android上启动react native,reactjs,react-native,Reactjs,React Native,3s内构建失败 无法运行本地运行的android 我在这个项目中连接了fierbase 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 wit

3s内构建失败 无法运行本地运行的android 我在这个项目中连接了fierbase

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.

* Where:
Script 'E:\react\fb (2)\fb\node_modules\@react-native-community\cli-platform-android\native_modules.gradle' line: 191

* What went wrong:
A problem occurred evaluating settings 'fb'.
> Unable to determine the current character, it is not a string, number, array, or object

  The current character read is 'E' with an int value of 69
  Unable to determine the current character, it is not a string, number, array, or object
  line number 1
  index number 0
  Error: Unexpected close tagLine: 31Column: 11Char: >    at error (E:\react\fb (2)\fb\node_modules\sax\lib\sax.js:651:10)    at strictFail (E:\react\fb (2)\fb\node_modules\sax\lib\sax.js:677:7)    at closeTag (E:\react\fb (2)\fb\node_modules\sax\lib\sax.js:871:9)    at SAXParser.write (E:\react\fb (2)\fb\node_modules\sax\lib\sax.js:1436:13)    at new XmlDocument (E:\react\fb (2)\fb\node_modules\xmldoc\lib\xmldoc.js:261:15)    at readManifest (E:\react\fb (2)\fb\node_modules\@react-native-community\cli-platform-android\build\config\readManifest.js:38:10)    at Object.projectConfig (E:\react\fb (2)\fb\node_modules\@react-native-community\cli-platform-android\build\config\index.js:59:46)    at Object.get project [as project] (E:\react\fb (2)\fb\node_modules\react-native\node_modules\@react-native-community\cli\build\tools\config\index.js:134:65)    at E:\react\fb (2)\fb\node_modules\react-native\node_modules\@react-native-community\cli\build\commands\config\config.js:8:452    at Array.forEach (<anonymous>)
  ^

* 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.
安装应用程序失败。确保已设置Android开发环境:https://facebook.github.io/react-native/docs/getting-started.html#android-发展环境。有关详细信息,请使用--verbose标志运行CLI。错误:命令失败:gradlew.bat应用程序:installDebug-PreactNativeDevServerPort=8081
失败:生成失败,出现异常。
*其中:
脚本“E:\react\fb(2)\fb\node\u modules\@react native community\cli platform android\native\u modules.gradle”行:191
*出了什么问题:
评估设置“fb”时出现问题。
>无法确定当前字符,它不是字符串、数字、数组或对象
当前读取的字符为“E”,int值为69
无法确定当前字符,它不是字符串、数字、数组或对象
第1行
索引编号0
错误:在strictFail(E:\react\fb(2)\fb(2)\node\u modules\sax\lib\sax.js:651:10)处出现错误(E:\react\fb(2)\fb\node\u modules\sax\lib\sax.js:677:7)在SAXParser.write(E:\react\fb(2)\fb\node\u modules\sax\sax.js:1436:13)处出现错误在Object.projectConfig(E:\react\fb(2)\fb\node\u modules\xmldoc\lib\xmldoc.js:261:15)的readManifest(E:\react\fb(2)\fb\node\u modules\@react native community\cli platform android\build\config\readManifest.js:38:10)的新的XmlDocument(E:\react\fb(2)\fb(2)\fb\node\u modules\@react native community\cli platform android\build\config\index.js:59:46)在Object.get项目[作为项目](E:\react\fb(2)\fb\node\u modules\react native\node\u modules\@react native community\cli\build\tools\config\index.js:134:65)在E:\react\fb(2)\fb\node\u modules\react native\node\u modules\@react native community\cli\build\commands\config\config.js:8:452 at Array.forEach()
^
*尝试:
使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。使用--scan运行以获得完整的洞察力。

错误很明显。您还需要设置Java运行时环境和Android SDK。@Meysamfagaghfouri此项目是通过在原始计算机上工作的笔驱动器存储的。另外,我的其他react原生项目在我当前的环境下也可以正常工作。您是否已在此处发布了所有错误文本?通常,它会显示有关错误的更多信息。您是否可以尝试
react native start
npm start
?@hongdevelop 1st i运行react native run android命令