Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
344 views
in Technique[技术] by (71.8m points)

java - Android Studio error: "Environment variable does not point to a valid JVM installation"

When trying to run Android Studio on my computer, I get the following error:

The Environment variable JAVA_HOME (with a value of C:Program?Files(x86)Javajdk1.7.0_51in) does not point to a valid JVM installation

I tried to remove the in extension on my JAVA_HOME environment variable, but it gives me the following error:

No JVM Found. Please install a 64-bit JDK. If you already have a JDK installed, define a JAVA_HOME variable in Computer > System Properties > System Settings > Environment Variables

  • My System: Windows 8.1 Update 1 x64 (64 bit)
  • Java Directory: C:Program Files (x86)Javajdk1.7.0_51in
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

If you start 64bit Android Studio, you have to add JAVA_HOME as

    "C:Program FilesJavajdk..."

If 32bit

    "C:Program Files(x86)Javajdk..."

and dont put "in" end of the path.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...