Top Menu

Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Thursday 3 December 2015

"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

or open the path where you have installed your Android Studio and open the "studio.exe.vmoptions" file in Notepad or Notepad++.




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
Read more...