Failed to create JVM in android studio

10,904

I hit this problem on my Windows 10 computer after updating my vm settings. The only way I managed to solve this was to remove my Android Studio config data:-

C:\Users\myuseraccount\.AndroidStudio2.2

I literally removed this entire folder and everything worked well again.

Share:
10,904
mama23n
Author by

mama23n

Updated on June 14, 2022

Comments

  • mama23n
    mama23n almost 2 years

    I set the JAVA_HOME and PATH in environment variables but now android studio is giving to me a new error. here is error:

    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
    

    enter image description here