由于无法识别的选项,无法创建 Java 虚拟机
Could not create the Java Virtual Machine due to an unrecognized option
我试图在 Ubuntu 上启动 Android Studio,但出现以下错误。
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=350m; support was removed in 8.0
Unrecognized option: -Xm4g
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
我想我错误地编辑了一个文件。谁能帮我解决这个问题?
您需要 find your config file(可能 studio.vmoptions
)并将其更改为 -Xmx4g
(代表最大堆大小)
将 -Xm4g 更改为 -Xmx4g
如果您不知道 -Xm4g 的来源,运行:
grep -Ril "-Xm4g" "<android studio folder>"
或
grep -Ril "-Xm" "<android studio folder>"
我试图在 Ubuntu 上启动 Android Studio,但出现以下错误。
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=350m; support was removed in 8.0
Unrecognized option: -Xm4g
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
我想我错误地编辑了一个文件。谁能帮我解决这个问题?
您需要 find your config file(可能 studio.vmoptions
)并将其更改为 -Xmx4g
(代表最大堆大小)
将 -Xm4g 更改为 -Xmx4g
如果您不知道 -Xm4g 的来源,运行:
grep -Ril "-Xm4g" "<android studio folder>"
或
grep -Ril "-Xm" "<android studio folder>"