我想在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.
我想我错误地编辑了一个文件。任何人都可以帮我解决这个问题吗?
答案 0 :(得分:1)
您需要find your config file(可能是studio.vmoptions
)并将其更改为-Xmx4g
(代表最大堆大小)
答案 1 :(得分:1)
将-Xm4g更改为-Xmx4g
如果您不知道-Xm4g的来源,请运行:
grep -Ril "-Xm4g" "<android studio folder>"
或
grep -Ril "-Xm" "<android studio folder>"