React native 我如何在不使用“启动”的情况下启动应用程序;博览会及模拟器;

React native 我如何在不使用“启动”的情况下启动应用程序;博览会及模拟器;,react-native,React Native,[1-npm安装-g react native cli] “创建新项目”命令 **react native init MyAwesome** 运行项目 cd-MyAwesome 通过笔记本电脑连接我的手机“开发者模式和USB调试模式也处于开启状态” react本地运行android C:\Users\ALL INDIA\Desktop\expMng> react-native run-android info Running jetifier to migrate libraries to

[1-npm安装-g react native cli]

“创建新项目”命令 **react native init MyAwesome**

运行项目 cd-MyAwesome

通过笔记本电脑连接我的手机“开发者模式和USB调试模式也处于开启状态” react本地运行android

C:\Users\ALL INDIA\Desktop\expMng> react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
(node:9536) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
Jetifier found 967 file(s) to forward-jetify. Using 4 workers...
info JS server already running.
'C:\Users\ALL' is not recognized as an internal or external command,
operable program or batch file.
info Launching emulator...
error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
info Installing the app...

ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk-14.0.2\bin

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.

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

应该使用C:\Program Files\Java\jdkx.x.x对其进行设置

\垃圾箱不是必需的


您的android studio设置不正确。 按照此步骤设置android studio的环境变量 安装完成后,请重新启动电脑,然后再试一次