react native 老是报错说好的适合前端的呢?

问题遇到的现象和发生背景

react native
不会,崩溃了
react native 老是报错说好的适合前端的呢?

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: D:\vscode\JDK11\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.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

额,ERROR: JAVA_HOME is set to an invalid directory: D:\vscode\JDK11\bin你的环境变量问题还没解决吗?

jdk 设置到 D:\vscode\JDK11 这一层应该就可以了。