This error generally comes while installation of Android SDK on 64 bit OS.
Solution :
There are mainly two solutions I’ve found as working.
- Simply press Back and then from previous screen again Next. or restart installation it’ll find JDK
- Your JAVA_HOME is not set properly. Make sure it is set to C:/Program Files/Java/jdk1.6.0_31
For those who are working with java first time. you need to set JAVA_HOME path from environment variable if it’s not automatically defined.