简体   繁体   English

我正在尝试下载android studio,但它一直告诉我要安装Java。 请告诉我该怎么办?

[英]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安装。

  1. 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

  2. Configure the JVM and verify with command "java -version" 配置JVM并使用命令“ java -version”进行验证

  3. 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变量

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 有人能告诉我我做错了什么吗 - Can some one tell me what i have done wrong 有人能告诉我我对 IntelliJ 做错了什么吗 - Can somebody tell me what I have done wrong to IntelliJ 我正在尝试创建一个循环的LinkedList,请告诉我它是否是正确的方法 - I am trying to create a circular LinkedList Please tell me if its a correct way to do it 所以,我正在尝试在 android 中做一些简单的事情,它显示了我的错误,我无法弄清楚 - So, I am trying to do simple stuff in android and it shows me error and I'm not able to figure it out 我正在尝试使用jconsole连接到具有身份验证的JMX,但我无法这样做。 但是我无需身份验证就可以连接它 - I am trying to connect to JMX with authentication using jconsole, but I am not able to do so. But I am able to connect it without authentication 我不明白这句话试图用JAVA告诉我什么 - I don't understand what this statement is trying to tell me in JAVA Java编译器告诉我我尚未启动变量“ interest”或“ pmt” - Java compiler is telling me I have not initiated variable “interest” or “pmt” 我已经尝试安装 Flutter 几个小时但失败了。 请告诉我如何解决这个问题 - I have tried to install Flutter for hours but failed. PLease tell me how to solve this 什么是Scala试图告诉我,我该如何解决这个问题? [required:java.util.List [?0] where type?0] - What is Scala trying to tell me and how do I fix this? [ required: java.util.List[?0] where type ?0] 我正在尝试使用getParameterName()。但是异常正在上升。如果我做错了方法,请告诉我正确的方法 - i am trying to use getParameterName().but exception is raising.please tell me the correct way if i am doing in wrong way
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM