“Failed to create jvm, error code – 4” Android Studio

Hi Friends,

If you are facing this problem

failed to create jvm error code -4 JVM Path: C:\Program Files\Java\jdk1.7.0_45\jre If you already have a 32-bit JDK installed, define a JAVA_HOME variable in Which is not solved.

Then here is the solution:

Go to C:\Program Files\Android\Android Studio\bin\studio.exe.vmoptions

Open it in Notepad or Notepad ++ and change the following attributes

-Xmx512m to -Xmx256m

-XX:MaxPermSize=250m to -XX:MaxPermSize=128m

OR

-Xmx750m to -Xmx512m

-XX:MaxPermSize=350m to -XX:MaxPermSize=250m

Advertisements

3 thoughts on ““Failed to create jvm, error code – 4” Android Studio

  1. unable to change it because ….access is denied….

    Like

  2. Thank you my friend. Acces.

    Like

  3. where do we save

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s