Solution to error Java 1.8 or later is required when Android studio starts

Error description

Android studio 2.2 has been running on the company computer for some time, but I still use Android studio 1.5 on my laptop. I downloaded an Android studio 2.2 compressed package this evening. After decompression, an error will be reported when I start Android studio 2.2. The error is as follows:

Unsupported Java Version : Cannot start under Java 1.7.0_ 04-b22 : Java 1.8 or later is required.

Analysis error

View the Java version of the current computer as follows:

As shown above, the Java JDK version of the current computer is 1.7.0_ 04, and Android studio 2.2 needs JAVA JDK1.8 or above to start.

Resolve errors

Step 1: Download Java JDK1.8

Go to Oracle's official website to download JDK 1.8 at the following address:

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Here we download the windows x86 version of the Java se development kit 8u112, because this is the JDK version available to the author's current computer.

Step 2: install JDK1.8

Install JDK1.8 on the computer. The author installed it at e: \ Java \ JDK_ Path \ jkd-1.8, as shown in the following figure:

Step 3: reconfigure Java_ Home is the installation path of JDK1.8

Configure Java_ The path of home is the installation path of jkd1.8 e: \ Java \ JDK_ Path \ jkd-1.8, as shown in the following figure:

Check whether the Java version is 1.8

Step 4: re run Android studio 2.2.

Click studio.exe to re run Android studio 2.2, as shown in the following figure:

OK, it is normal to re run the JDK after changing from version 1.7 to version 1.8.

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>