gpt4 book ai didi

java - 错误:Error: Could not create the Java Virtual Machine

转载 作者:太空宇宙 更新时间:2023-11-04 10:43:35 24 4
gpt4 key购买 nike

大家好,我在生成签名 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 amd64JVM:JetBrains s.r.o 的 OpenJDK 64 位服务器 VMWindows 10 10.0

最佳答案

检查项目使用的java版本。它可能与 Studio 使用的不同。

例如:

enter image description here

关于java - 错误:Error: Could not create the Java Virtual Machine,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48667734/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com