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.
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)
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
##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:
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.8
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)Step 4:
Rerun Android Studio 2.2.
Click studio.exe and re-run Android Studio 2.2, as shown below:
OK, change the JDK from version 1.7 to version 1.8 and then run it again and it will be normal.
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!