Home > Java > javaTutorial > body text

Detailed explanation of the solution to the Android Studio startup error Java 1.8 or later is required (picture and text)

黄舟
Release: 2017-03-31 10:43:49
Original
2224 people have browsed it

This article mainly introduces you in detailAndroid Java 1.8 error occurs when Studio starts or later is required solution, which has certain reference value. Interested friends can refer to

Error description

I have been running Android Studio 2.2 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 tonight. After decompressing it, I got an error when I started Android Studio 2.2. The error is as follows Display:

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

Detailed explanation of the solution to the Android Studio startup error Java 1.8 or later is required (picture and text)

Analysis Error

View the Java Version of the current computer, as shown below:

C:\Users\Administrator>java -version
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b22)
Java HotSpot(TM) Client VM (build 23.0-b21, mixed mode, sharing)
Copy after login

Detailed explanation of the solution to the Android Studio startup error Java 1.8 or later is required (picture and text)

Detailed explanation of the solution to the Android Studio startup error Java 1.8 or later is required (picture and text)

As shown above, the current computer The Java JDK version is 1.7.0_04, and Android Studio 2.2 requires Java JDK1.8 or above to start.

Resolving the error

## The first step: Download Java JDK1.8

Go to Oracle’s official website to download JDK 1.8, the address is as follows:

Detailed explanation of the solution to the Android Studio startup error Java 1.8 or later is required (picture and text)

here We download the Windows x86 version of Java SE Development Kit 8u112, because this is the JDK version that can be used on my current computer.

##Step 2: Installation. JDK1.8
Install JDK1.8 on the computer. The author installed it in E:\JAVA\JDK_Path\JKD-1.8, as shown in the following figure:


Detailed explanation of the solution to the Android Studio startup error Java 1.8 or later is required (picture and text)

Step Three: Reconfigure JAVA_HOME to the installation path of JDK1.8
Configure the path of JAVA_HOME to The installation path of JKD1.8 is E:\JAVA\JDK_Path\JKD-1.8, as shown in the figure below:


##Check whether the Java Version is 1.8Detailed explanation of the solution to the Android Studio startup error Java 1.8 or later is required (picture and text)

C:\Users\Administrator>java -version
java version "1.8.0_112"
Java(TM) SE Runtime Environment (build 1.8.0_112-b15)
Java HotSpot(TM) Client VM (build 25.112-b15, mixed mode)
Copy after login

Detailed explanation of the solution to the Android Studio startup error Java 1.8 or later is required (picture and text)

Step 4:

Rerun Android Studio 2.2.

Click studio.exe and re-run Android Studio 2.2, as shown below: Detailed explanation of the solution to the Android Studio startup error Java 1.8 or later is required (picture and text)


Detailed explanation of the solution to the Android Studio startup error Java 1.8 or later is required (picture and text)

Detailed explanation of the solution to the Android Studio startup error Java 1.8 or later is required (picture and text)

OK, change the JDK from version 1.7 to version 1.8 and then run it again and it will be normal. Detailed explanation of the solution to the Android Studio startup error Java 1.8 or later is required (picture and text)

The above is the detailed content of Detailed explanation of the solution to the Android Studio startup error Java 1.8 or later is required (picture and text). For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!