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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With