Skip to content Skip to sidebar Skip to footer

Failure To Launch Android Studio; Failed To Create JVM: Error Code -1

When trying to launch Android Studio on Windows I get the following error: Failed to create JVM: error code -1 JVM Path: C:\Program Files\Java\jdk1.8.0_91\jre I have tried setting

Solution 1:

With: Failed to create JVM: error code -1

I tried deleting the studio64.exe.vmoptions file

(from: C:\Users\vungnho.AndroidStudio3.1\config)

(vungnho - my user name; .AndroidStudio3.1 - config folder for current Studio)

and it worked!


Exactly, I tried reinstall Android Studio but the problem still occur,

so I tried rename .AndroidStudio3.1 folder, but it have many my configs :(


Solution 2:

Problem solved! This thread was extremely helpful:

failed to create jvm error code 4 android studio

What ended up working for me was deleting the Android Studio setting folder in my user folder.

C:\Users\my_username.AndroidStudio

Then re-open Android Studio then everything work fine for me.


Solution 3:

For those that are using the Android studio version 4, can find the .vmoptions in the following path: C:\Users\YourUserName\AppData\Roaming\Google\AndroidStudio4.1

as mentioned here in the official documentation of Android: https://developer.android.com/studio/intro/studio-config


Post a Comment for "Failure To Launch Android Studio; Failed To Create JVM: Error Code -1"