【发布时间】:2018-07-17 23:24:11
【问题描述】:
大家好,我在生成签名 apk 时发现了这个错误。
Error:Error: Could not create the Java Virtual Machine.
Error:Error: A fatal exception has occurred. Program will exit.
Error:Invalid maximum heap size: -Xmx4g
Error:The specified size exceeds the maximum representable size.
我的配置 - Android Studio 3.0.1 构建 #AI-171.4443003,构建于 2017 年 11 月 9 日 JRE:1.8.0_152-release-915-b01 amd64 JVM:JetBrains s.r.o 的 OpenJDK 64 位服务器 VM 视窗 10 10.0
【问题讨论】:
-
你使用的是 64bit JRE 和 64bit android studio吗?
-
是的,我确实在使用 64bit JRE 和 64bit android studio
-
Android Studio 3.0.1 Build #AI-171.4443003,于 2017 年 11 月 9 日构建 JRE:1.8.0_152-release-915-b01 amd64 JVM:JetBrains sro Windows 10 的 OpenJDK 64 位服务器 VM 10.0
-
你的机器有多少内存?
-
6.00 GB(4.96 GB 可用)