Skip to main content

Android-Studio : Error: Could not create the Java Virtual Machine

Solution:
  • Changed below file to modify vm heap option.
  • C:\Program Files\Android\android-studio\bin\studio.exe.vmoptions
    & increased -Xms128m to -Xms512m and restarted Android Studio.
  • You should create a new environment variable named _JAVA_OPTIONS, set it to -Xms256m -Xmx1024m and it should work.
  • Follow this steps:
    1. Run regedit
    2. Go to HKEY_CURRENT_USER
    3. Select Environment
    4. Add a new String Value and enter _JAVA_OPTIONS for Value name
    5. Enter -Xms256m -Xmx512m for Value data
    6. Reboot computer

Comments

Post a Comment