Android studio does not start why? orz
It will start, if “JAVA_HOME or “JDK_HOME” or “ANDROID_STUDIO_JDK” is added to an environment variable.
or
“android-studio\bin\studio.bat” is edited.
@ECHO OFF ::---------------------------------------------------------------------- :: Android Studio startup script. ::---------------------------------------------------------------------- :: ↓add SET JAVA_HOME=C:\Program Files\Java\jdk1.7.0_17
It came to start now.
The cause of an error understands that it sees the following source.
It will become an error if either is not set as the environment variable below.
(1)JAVA_HOME
(2)JDK_HOME
(3)ANDROID_STUDIO_JDK
▼android-studio\bin\studio.bat
:: --------------------------------------------------------------------- :: Locate a JDK installation directory which will be used to run the IDE. :: Try (in order): ANDROID_STUDIO_JDK, ..\jre, JDK_HOME, JAVA_HOME. :: --------------------------------------------------------------------- IF EXIST "%ANDROID_STUDIO_JDK%" SET JDK=%ANDROID_STUDIO_JDK% IF NOT "%JDK%" == "" GOTO jdk IF EXIST "%~dp0\..\jre" SET JDK=%~dp0\..\jre IF NOT "%JDK%" == "" GOTO jdk IF EXIST "%JDK_HOME%" SET JDK=%JDK_HOME% IF NOT "%JDK%" == "" GOTO jdk IF EXIST "%JAVA_HOME%" SET JDK=%JAVA_HOME% IF "%JDK%" == "" GOTO error