I just downloaded the Android Studio. While trying to run it, I had to modify the environment variable and add
JAVA_HOME
and
I had to put backslash at the end of path and it worked for me.
Earlier I was using
C:\Program Files\Java\jdk1.7.0_79
just by putting "\" at the end, worked for me. Now the value of the JAVA_HOME variable is
C:\Program Files\Java\jdk1.7.0_79\