failed to create jvm error code 4 android studio

后端 未结 8 2464
情话喂你
情话喂你 2020-12-03 07:09

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

相关标签:
8条回答
  • 2020-12-03 07:53

    If you have recently modified Custom VM Options using Help menu, then you should undo your changes or if you have created a new VM options file, remove it. The file can be found on this path:

    C:\Users\.AndroidStudio2.1

    0 讨论(0)
  • 2020-12-03 07:57

    finally I got answer here. You need to change vmoptions file from android studio.

    Go to Program files > Android > Android Studio > Bin > android studio.exe vmoptions file.

    Open it with notepad and change the following attributes :

    Change -Xmx512m to -Xmx256m and -XX:MaxPermSize=250m to -XX:MaxPermSize=128m or

    Change -Xmx750m to -Xmx512m and -XX:MaxPermSize=350m to -XX:MaxPermSize=250m

    0 讨论(0)
提交回复
热议问题