Show MenuHide Menu

Archives

2013年5月
« 4月   6月 »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Android studio doesn’t start.

2013年5月21日   

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