Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't start Android studio

After installing Android studio, I can't start it. There is no response any more after click it's icon.I open the bat file named “studio.bat” in "C:\Program Files\Android\android-studio\bin",run it in cmd window, I found that:

C:\Documents and Settings\mtk81346>"C:\Program Files\Android\android-studio\bin\studio.bat"

C:\Documents and Settings\mtk81346>IF EXIST "" SET JDK=

C:\Documents and Settings\mtk81346>IF NOT "" == "" GOTO jdk

C:\Documents and Settings\mtk81346>IF EXIST "C:\Program Files\Android\android-st**udio\bin\\..\jre**" SET JDK=

    C:\Program Files\Android\android-studio\bin\
    \..\jre

C:\Documents and Settings\mtk81346>IF NOT "" == "" GOTO jdk
like image 345
user2388211 Avatar asked May 16 '13 03:05

user2388211


People also ask

Why does Android Studio is not opening?

If Studio doesn't start after an upgrade, the problem may be due to an invalid Android Studio configuration imported from a previous version of Android Studio or an incompatible plugin.

What should I do if Android Studio is not working?

Open up Tools => Android => Android SDK Manager and see if there are any updates to the platform or SDK tools. Update any suggested changes within the manager and then restart your emulator and Android Studio. Then try debugging again.

How do I fix Android Studio?

Open your gradle. properties file in Android Studio. Restart Android Studio for your changes to take effect. Click Sync Project with Gradle Files to sync your project.

How do I launch Android Studio?

To launch Android Studio, open a terminal, navigate to the android-studio/bin/ directory, and execute studio.sh . Select whether you want to import previous Android Studio settings or not, then click OK.


2 Answers

Add the environment variable JAVA_HOME to the latest jdk path.

like image 51
Larry McKenzie Avatar answered Oct 22 '22 12:10

Larry McKenzie


Make sure you have JDK_HOME or JAVA_HOME System Variable set to the path of the JDK.

Secondly, I had an issue using an older version of the JDK (1.6.x). When I upgraded to 1.7.x, and modified the System Variable JAVA_HOME to that path (didn't include /bin), I was able to get Android Studio running.

like image 27
Garrett Avatar answered Oct 22 '22 12:10

Garrett