本站消息

站长简介/公众号

  出租广告位,需要合作请联系站长


+关注
已关注

分类  

暂无分类

标签  

暂无标签

日期归档  

暂无数据

JAVA_HOME is set to an invalid directory, Please set the JAVA_HOME variable in your environment to match the location of your Java installation [closed]

发布于2022-10-24 02:48     阅读(507)     评论(0)     点赞(24)     收藏(3)


F:\Project_Path>gradlew appDistributionLogin

ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Java\openjdk

Please set the JAVA_HOME variable in your environment to match the location of your Java installation. when running the firebase app distribution command on the android studio terminal. I have already set the JDK location in my system & the environment variable still getting this error.

enter image description here


解决方案


Make sure the path 'C:\Program Files\Java\openjdk' is valid(ensure correct spellings) and existed in your system.

Ideally value for JAVA_HOME should be pointed to the Home directory of the java installed in your system.

Example JAVA_HOME directory



所属网站分类: 技术文章 > 问答

作者:黑洞官方问答小能手

链接:http://www.javaheidong.com/blog/article/561416/5febed70e69336d8932d/

来源:java黑洞网

任何形式的转载都请注明出处,如有侵权 一经发现 必将追究其法律责任

24 0
收藏该文
已收藏

评论内容:(最多支持255个字符)