title: gradlew.bat invalid directory in android studio
body: <p>How do I address the following error?</p>
  
  <pre><code>ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk1.7.0_67\bin;
  </code></pre>
  
  <p>Please set the JAVA_HOME variable in your environment to match the
  location of your Java installation.</p>
  
  <p>I've been researching this for hours today but I haven't been able to find a solution that works for me. 
  My JAVA_HOME is set to C:\Program Files\Java\jdk1.7.0_67; </p>
  
  <p>I tried setting it to JAVA_HOME C:\Progra~2\Java\jdk1.7.67; per the advise of a different thread but gradle is still throwing the same error in android studio. </p>
  
  <p>Does anyone have an idea about what might be going wrong right now?</p>