title: Failed to create JVM in android studio
body: <p>I set the JAVA_HOME and PATH in environment variables but now android studio is giving to me a new error.
  here is error:</p>
  
  <pre><code>Failed to create JVM:error code -6.
  JVM path:C:\Program Files\java\jdk1.9.0
  if you already have a 64-bit JDKinstalled, define a JAVA_HOME variable in
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/QjTBH.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QjTBH.jpg" alt="enter image description here"></a></p>