虾仁A 2022-09-05 21:10 采纳率: 78.8%
浏览 40
已结题

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

  • 写回答

2条回答 默认 最新

  • 不会写代码的猴子 Android领域优质创作者 2022-09-06 13:30
    关注

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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 9月22日
  • 已采纳回答 9月14日
  • 创建了问题 9月5日