找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 3296|回复: 3

[求助] 求大佬帮忙解答,安卓构建失败。

[复制链接]
发表于 2021-11-1 11:30:07 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
Ren'Py 7.4.10.2178

正在更新工程。

正在创建资源目录。

正在打包内部数据。

正在使用 Gradle 构建应用包。
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/6.1.1/userguide/gradle_daemon.html.

FAILURE: Build failed with an exception.

* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/6.1.1/userguide/gradle_daemon.html
Process command line: D:\Java\jdk1.8.0_241\bin\java.exe -Xmx2048g -Dfile.encoding=GBK -Duser.country=CN -Duser.language=zh -Duser.variant -cp C:\Users\86176\.gradle\wrapper\dists\gradle-6.1.1-bin\4i3ntwqiazourd86epxcz427c\gradle-6.1.1\lib\gradle-launcher-6.1.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 6.1.1
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Unable to allocate 67108864KB bitmaps for parallel garbage collection for the requested 2147483648KB heap.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org




构建似乎已失败。


求求了,救救孩子
发表于 2021-11-2 08:14:33 | 显示全部楼层
能问下你打包的游戏有多大吗?看样子应该是JAVA溢出了,建议升级JDK或者压缩游戏大小
回复 支持 抱歉

使用道具 举报

 楼主| 发表于 2021-11-2 14:13:20 | 显示全部楼层
本帖最后由 sxingxie 于 2021-11-2 14:14 编辑
qwe3147969113 发表于 2021-11-2 08:14
能问下你打包的游戏有多大吗?看样子应该是JAVA溢出了,建议升级JDK或者压缩游戏大小 ...

大概2.1G,压缩的话大概压缩到多少合适
回复 支持 抱歉

使用道具 举报

发表于 2021-11-3 09:34:28 | 显示全部楼层
sxingxie 发表于 2021-11-2 14:13
大概2.1G,压缩的话大概压缩到多少合适

建议优先升级JAVA的JDK至于压缩到多少合适,我这只能说是越小越好,如果你要保证画质的前提下,最好1G左右,可以先试试看
回复 支持 抱歉

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|RenPy中文空间 ( 苏ICP备17067825号|苏公网安备 32092302000068号 )

GMT+8, 2024-4-23 17:56 , Processed in 0.071641 second(s), 14 queries , File On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表