Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

failed to create jvm error code 4 android studio

Tags:

I was just updated my last Android Studio and got this error:

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.

like image 522
Ravindra Pawar Avatar asked Oct 13 '15 04:10

Ravindra Pawar


1 Answers

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

Open it with notepad. some times it will not be editable so give administrative permission and change the following attributes:

-Xmx512m to -Xmx256m

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

Or change:

-Xmx750m to -Xmx512m

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

like image 81
Bhavan Patel Avatar answered Oct 05 '22 08:10

Bhavan Patel