admin管理员组文章数量:1125883
Currently working on a flutter project and getting this error:
ERROR: JAVA_HOME is set to an invalid directory: /Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home
Please set the JAVA_HOME variable in your environment to match the location of your Java installation.
I have tried adding the JDK path on environment variable but I'm still getting the same error even after re-installing android studio. I also can't find this path on my windows 11 machine: /Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home
PS:my Java version is as below:
java version "23.0.1" 2024-10-15 Java(TM) SE Runtime Environment (build 23.0.1+11-39) Java HotSpot(TM) 64-Bit Server VM (build 23.0.1+11-39, mixed mode, sharing)
How can this be solved?
本文标签: flutterJAVAHOME is set to Invalid Directory on Android Studio 2024Stack Overflow
版权声明:本文标题:flutter - JAVA_HOME is set to Invalid Directory on Android Studio 2024 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736651634a1946153.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论