title: Android Studio, define a JAVA_HOME variable
body: <p>I saw a video on Youtube for enhancing the performance of Android Studio. I did and now I can't launch my Android Studio. Now it gives an error saying that &quot;If you already have a 64-bit JDK installed, define a JAVA_HOME variable in Computer &gt; System Properties &gt; System Settings Environment Variables. Failed to create JVM. JVM Path C:\Program Files\Android\Android Studio\jre\jre&quot;</p>
  <p><a href="https://i.stack.imgur.com/EAMAw.png" rel="noreferrer"><img src="https://i.stack.imgur.com/EAMAw.png" alt="enter image description here" /></a></p>
  <p>I searched the whole internet and tried every solution mentioned but I still get the &quot;define JAVA_HOME variable&quot; error. I tried both completely uninstalling the Android Studio with all files and related folders manually deleted but still get this error and Android Studio just won't simply run. I have exams in a few days and I have a lot to practice.</p>
  <p>Edit:</p>
  <p><a href="https://i.stack.imgur.com/AU6Ze.png" rel="noreferrer"><img src="https://i.stack.imgur.com/AU6Ze.png" alt="enter image description here" /></a></p>
  <p>I just removed the JAVA_HOME. I have both the JDK and JVM installed. I am just uninstalling and installing Android Studio at the moment.</p>
  <p>Edit 2:</p>
  <p><a href="https://i.stack.imgur.com/qV707.png" rel="noreferrer"><img src="https://i.stack.imgur.com/qV707.png" alt="enter image description here" /></a></p>