Failed to create JVM: error code -6
程序员文章站
2024-03-13 15:34:33
...
修改了C:\Users\[用户名]\.AndroidStudio[x.x]
目录下的studio64.exe.vmoptions
文件内容:
# custom Android Studio VM options, see http://tools.android.com/tech-docs/configuration
-Xms1024m
-Xmx4096m
# <------ increase this to most of your RAM
-XX:MaxPermSize=1024m
-XX:ReservedCodeCacheSize=440m
-XX:+UseCompressedOops
-XX:+HeapDumpOnOutOfMemoryError
-Dfile.encoding=UTF-8
结果重启studio报错:
---------------------------
Error launching Android Studio
---------------------------
Failed to create JVM: error code -6.
JVM Path: D:\android\SDK\android-studio\jre\jre
If you already have a 64-bit JDK installed, define a JAVA_HOME variable in
Computer > System Properties > System Settings > Environment Variables.
---------------------------
确定
---------------------------
解决方案:
修改-Xmx4096m
为-Xmx2048m
就可以了,看来是内存估值超标了O(∩_∩)O
上一篇: docker安装及常用命令
下一篇: docker 安装以及常用命令
推荐阅读
-
【ERROR】OPatch failed with error code 73
-
mac navicat 15.0.21解决Failed to save password Error code: -34018
-
Failed to create JVM: error code -6
-
FreeBSD下zfs: failed with error 6错误解决_PHP教程
-
phpStorm打开提示 failed to create JVM 的解决办法_PHP教程
-
解决 win10 pycurl安装出错 Command "python setup.py egg_info" failed with error code 10
-
Android Studio 报错failed to create jvm error code -4的解决方法
-
Mysql_Faq: ERROR 1396 (HY000): Operation CREATE USER failed for ‘username’@’host
-
Mysql_Faq: ERROR 1396 (HY000): Operation CREATE USER failed for ‘username’@’host
-
FreeBSD下zfs: failed with error 6错误解决_PHP教程