0% found this document useful (0 votes)
495 views

Failed To Create JVM Error Code 4 Android Studio - Stack Overflow

The user was receiving a "failed to create jvm error code -4" when updating to a new version of Android Studio. The issue was resolved by opening the studio.exe.vmoptions file located in the Android Studio bin folder, and reducing the memory allocation settings -Xmx and -XX:MaxPermSize. Adjusting these settings from 512m to 256m and 250m to 128m respectively solved the JVM error.

Uploaded by

Edson Cuque
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
495 views

Failed To Create JVM Error Code 4 Android Studio - Stack Overflow

The user was receiving a "failed to create jvm error code -4" when updating to a new version of Android Studio. The issue was resolved by opening the studio.exe.vmoptions file located in the Android Studio bin folder, and reducing the memory allocation settings -Xmx and -XX:MaxPermSize. Adjusting these settings from 512m to 256m and 250m to 128m respectively solved the JVM error.

Uploaded by

Edson Cuque
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

failedtocreatejvmerrorcode4androidstudio

IwasjustupdatedmylastAndroidStudioandgotthiserror:
failedtocreatejvmerrorcode4JVMPath:C:\ProgramFiles\Java\jdk1.7.0_45\jreIfyoualreadyhavea32
bitJDKinstalled,defineaJAVA_HOMEvariableinWhichisnotsolved.

GotoC:\ProgramFiles\Android\AndroidStudio\bin\studio.exe.vmoptions
Openitwithnotepad.sometimesitwillnotbeeditablesogiveadministrativepermissionandchangethe
followingattributes:
Xmx512mtoXmx256m
XX:MaxPermSize=250mtoXX:MaxPermSize=128m
Orchange:
Xmx750mtoXmx512m
XX:MaxPermSize=350mtoXX:MaxPermSize=250m
finallyIgotanswerhere.Youneedtochangevmoptionsfilefromandroidstudio.
GotoProgramfiles>Android>AndroidStudio>Bin>androidstudio.exevmoptionsfile.
Openitwithnotepadandchangethefollowingattributes:
ChangeXmx512mtoXmx256mandXX:MaxPermSize=250mtoXX:MaxPermSize=128mor
ChangeXmx750mtoXmx512mandXX:MaxPermSize=350mtoXX:MaxPermSize=250m

You might also like