Java 指定的大小超过了可表示的最大大小
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27835090/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 05:07:14 来源:igfitidea点击:
The specified size exceeds the maximum representable size
提问by ManoRoshan
I'm compiling the Android projects in Final Builder
.The following error occurs eventhough I have installed the Java 64bit version
.
我正在编译 Android 项目Final Builder
。即使我已经安装了Java 64bit version
.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Invalid initial heap size: -Xms4096M
The specified size exceeds the maximum representable size.
Program returned code : 1
回答by vikingsteve
The error message is telling you the jvm argument for heap size is too large.
错误消息告诉您堆大小的 jvm 参数太大。
Try a smaller value, for example -Xms1024M
.
尝试一个较小的值,例如-Xms1024M
。