[英]I am trying to download android studio but it keeps telling me to install Java which i have done so. Please tell me what i should do?
I am trying to download android studio but it keeps telling me that i need to update or install Java, which i have done so afew times. 我正在尝试下载android studio,但它一直告诉我我需要更新或安装Java,而我已经几次这样做了。 But it keeps giving me the Java error message.
但是它一直给我Java错误消息。 I am running this on MacOS Mojave version 10.14.5.
我在MacOS Mojave 10.14.5版上运行此程序。 This is what the error keeps saying:
错误一直在说:
Unable to find any JVMs matching version "(null)". 找不到与版本“(空)”匹配的任何JVM。 No Java runtime present, try --request to install.
没有Java运行时,请尝试--request安装。 Unable to find any JVMs matching version "(null)".
找不到与版本“(空)”匹配的任何JVM。 No Java runtime present, try --request to install.
没有Java运行时,请尝试--request安装。
Make sure to install the latest JDK 12 from below link 确保从下面的链接安装最新的JDK 12
https://www.oracle.com/technetwork/java/javase/downloads/jdk12-downloads-5295953.html https://www.oracle.com/technetwork/java/javase/downloads/jdk12-downloads-5295953.html
Configure the JVM and verify with command "java -version" 配置JVM并使用命令“ java -version”进行验证
If above tasks has completed, retry the installation process.@naj 如果上述任务已完成,请重试安装过程。@ naj
To verify
whether you have install JAVA
correctly or not in your machine. verify
您是否在机器中正确安装了JAVA
。 Do like below : 像下面这样:
Open Command Prompt
and Type : java -version
打开
Command Prompt
并输入: java -version
If it shows you the version
then it all correct. 如果它显示了
version
则说明一切正确。 But, if it does not recognize the command then you need to paste your jdk path in Environment variables. 但是,如果无法识别该命令,则需要将jdk路径粘贴到环境变量中。 ie :
C:\\Program Files\\Java\\jdk1.8.0_181\\bin
即:
C:\\Program Files\\Java\\jdk1.8.0_181\\bin
Set the JAVA_HOME Variable 设置JAVA_HOME变量
Windows: configure java_home guide Windows: 配置java_home指南
Mac: configure java home guide Mac: 配置Java家庭指南
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.