JAVA_HOME error.
Add environment variable ANDROID_STUDIO, which is the same as %JAVA_HOME%, but one more "".