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 this problem as well, and I must have tried 20 different path adding solutions before I worked it out. Someone mentioned it above almost as a side note, but this was exactly my issue:
make sure you are running a 64-bit version of java.