[英]Can't open Android studio. (issues related to JDK)
As mentioned in Question Title, I am unable to open Android Studio. 如问题标题中所述,我无法打开Android Studio。
When I am trying to open it, below message is shown: 当我尝试打开它时,显示以下消息:
"The environment variable JAVA_HOME (with the value of
C:\Program Files\Java\jdk.1.8.0_31\bin;) does not point
to a valid JVM installation."
How can I solve this problem? 我怎么解决这个问题?
尝试从JAVA_HOME系统变量的末尾删除\\ bin。
Your path variable for Java Installation is probably corrupt maybe due to a re-install or you didn't set it in the first place. 您的Java安装路径变量可能已损坏,可能是由于重新安装或者您没有首先设置它。
This can be easily fixed. 这很容易解决。
First install the latest version of JAVA SE from this webpage. 首先从该网页安装最新版本的JAVA SE 。
To set the temporary path of JDK (in windows), you need to follow following steps: 要设置JDK的临时路径 (在Windows中),您需要执行以下步骤:
set path=*copied_path*
set path=*copied_path*
For Example: 例如:
set path=C:\Program Files\Java\jdkx.x.x_23\bin
where xxx are the jdk version related number 其中xxx是与jdk版本相关的数字
It is useful to set the PATH environment variable permanently so it will persist after rebooting. 永久设置PATH环境变量非常有用,这样它在重新启动后将继续存在。 You can read more about how to do this over here: Set PATH and CLASSPATH
您可以在此处详细了解如何执行此操作: 设置PATH和CLASSPATH
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.