无法创建jvm:错误代码-6 Android Studio
问题描述:
我在自定义VM选项中设置了-XmxheapSize:-Xmx2g 并在这个android studio结束后在控制台中运行jps -lvm而不是午餐和错误
i set -XmxheapSize:-Xmx2g in Custom VM Options and run jps -lvm in console after this android studio not lunch and error
无法创建jvm:错误代码-6 android studio
failed to create jvm:error code -6 android studio
我重新启动PC并重新安装android studio,但无法正常工作!
i restart pc and re-install android studio but not working!!!
请大声疾呼
我的系统操作Windows 10 64位
my system operation windows 10 64-bit
答
这确实是损坏的自定义vmoptions文件
要修复,请编辑文件,对我来说是这样:
This is indeed a corrupt custom vmoptions file
To fix, edit the file, which for me was here:
C:\Users\<WindowsUser>\.AndroidStudio2.3\studio64.exe.vmoptions
确保在每一行上指定一个选项.
例如
Ensure options are specified one on each line.
e.g.
# custom Android Studio VM options, see http://tools.android.com/tech-docs/configuration
-Xms750m
-Xmx750m
保存文件并重新运行Android Studio.
Save the file and rerun Android Studio.