Android Studio installation on Windows 7 fails, no JDK found

I downloaded Android Studio and attempted to launch the program.

This is running on Windows 7 64-bit with Java 1.7. During the installation my Java 1.7 is detected, and the rest of the installation goes through just fine. However, when attempting to launch the application from the desktop icon, nothing happens. Looking at the task manager, a new process from the CMD is loaded. This is because it's attempting to run the batch file studio.bat .

When I execute via CMD, I get the following error:

ERROR: cannot start Android Studio. No JDK found. Please validate either ANDROID_STUDIO_JDK, or JDK_HOME or JAVA_HOME points to valid JDK installation. ECHO is off. Press any key to continue . . .

I've attempted to open the idea properties file to see if there was something I could configure for this ANDROID_STUDIO_JDK or something like that. However, I found nothing. I hope some of you can let me know if you were able to install this or if you are having problems as well.


Adding a system variable JDK_HOME with value c:Program FilesJavajdk1.7.0_21 worked for me. The latest Java release can be downloaded here.

Additionally, make sure the variable JAVA_HOME is also set with the above location. Steps are here. For Video


OK, I figured out how fix this nasty bug.

Before you start

Go to your Android Studio installation folder and locate the bin folder. Inside the bin folder, you will find studio.bat . Execute the file, and it'll show the error. If it is about the Java path then follow the tip 1.

Tip 1

When you set the path JAVA_HOME , etc., make sure not to include bin at the end of the path. This solved the issue for me.

JAVA_HOME => C:Program FilesJavajdk1.7.0_21

path => C:Program FilesJavajdk1.7.0_21bin

It works fine with JDK 1.7 (I tried with 32 bit).

If you do so, you can see the initial screen as below.

在这里输入图片说明

Tip 2

Are you getting the below error message?

Your Android SDK is out of date or is missing templates. Please ensure you are using SDK version 22 or later.

This error probably occurs, because you have reference to your older SDK (that you downloaded with Eclipse) in your path variable. Go to Environment variables and remove any reference to the old SDK folder and point it to new SDK folder that is found inside the Android Studio installation folder.

Save and restart Studio, things should work as expected now.

Tip 3

If you hate messing around with the path variable as given above by removing old references, simply follow the following steps to refer to new SDK path that comes with Studio.

*Project Defaults* -> *Project Structure* -> Click "New" -> Select "Android SDK" -> Select the SDK folder inside the studio installation.


With the last update of Androd Studio I have two versions of the IDE's launcher

One is called studio.exe and the other studio64.exe they are both on:

C:UsersmyUserNameAppDataLocalAndroidandroid-studiobin

You have to launch the one that matches your Java version 64 or 32 bit

链接地址: http://www.djcxy.com/p/17976.html

上一篇: 使用Android开发工具v。23更新Eclipse

下一篇: Windows 7上的Android Studio安装失败,找不到JDK