前提・実現したいこと
Ren'PyにてAndroidアプリのビルドを「Ren'Py→Android→パッケージのビルド」からおこなおうとした結果ビルドの途中で失敗してしまいapkファイルをつくるところまでいけずに困っている。
発生している問題に対しての対応
「構成の設定」からGradleに割り当てるRAMメモリを3GBから4GBに変更
Error occurred during initialization of VM Could not reserve enough space for 3145728KB object heap
から
Invalid maximum heap size: -Xmx4g The specified size exceeds the maximum representable size. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
となり割り当てるメモリの容量を変更しただけではだめだった
JDKが32bit版をインストールしていたため64bit版をインストールする必要があった
エラーメッセージ
エラーメッセージは以下の通りです。
割り当てるメモリを3GBから4GBに変更した場合
android.txt
1Ren'Py 7.4.8.1895 2 3プロジェクトを更新しています。 4 5アセットディレクトリーを作成しています 6 7内部データをパッケージングしています。 8 9パッケージのビルドに Gradle を使用しています。 10To 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. 11 12FAILURE: Build failed with an exception. 13 14* What went wrong: 15Unable to start the daemon process. 16This problem might be caused by incorrect configuration of the daemon. 17For example, an unrecognized jvm option is used. 18Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/6.1.1/userguide/gradle_daemon.html 19Process command line: C:\Program Files (x86)\Java\jdk1.8.0_261\bin\java.exe -Xmx4g -Dfile.encoding=windows-31j -Duser.country=JP -Duser.language=ja -Duser.variant -cp C:\Users\user.gradle\wrapper\dists\gradle-6.1.1-all\cfmwm155h49vnt3hynmlrsdst\gradle-6.1.1\lib\gradle-launcher-6.1.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 6.1.1 20Please read the following process output to find out more: 21----------------------- 22Invalid maximum heap size: -Xmx4g 23The specified size exceeds the maximum representable size. 24Error: Could not create the Java Virtual Machine. 25Error: A fatal exception has occurred. Program will exit. 26 27 28* Try: 29Run with --info or --debug option to get more log output. Run with --scan to get full insights. 30 31* Exception is: 32org.gradle.api.GradleException: Unable to start the daemon process. 33This problem might be caused by incorrect configuration of the daemon. 34For example, an unrecognized jvm option is used. 35Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/6.1.1/userguide/gradle_daemon.html 36Process command line: C:\Program Files (x86)\Java\jdk1.8.0_261\bin\java.exe -Xmx4g -Dfile.encoding=windows-31j -Duser.country=JP -Duser.language=ja -Duser.variant -cp C:\Users\user.gradle\wrapper\dists\gradle-6.1.1-all\cfmwm155h49vnt3hynmlrsdst\gradle-6.1.1\lib\gradle-launcher-6.1.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 6.1.1 37Please read the following process output to find out more: 38----------------------- 39Invalid maximum heap size: -Xmx4g 40The specified size exceeds the maximum representable size. 41Error: Could not create the Java Virtual Machine. 42Error: A fatal exception has occurred. Program will exit. 43 44 at org.gradle.launcher.daemon.client.DaemonGreeter.parseDaemonOutput(DaemonGreeter.java:38) 45 at org.gradle.launcher.daemon.client.DefaultDaemonStarter.startProcess(DefaultDaemonStarter.java:175) 46 at org.gradle.launcher.daemon.client.DefaultDaemonStarter.startDaemon(DefaultDaemonStarter.java:137) 47 at org.gradle.launcher.daemon.client.DefaultDaemonConnector.doStartDaemon(DefaultDaemonConnector.java:217) 48 at org.gradle.launcher.daemon.client.DefaultDaemonConnector.startSingleUseDaemon(DefaultDaemonConnector.java:242) 49 at org.gradle.launcher.daemon.client.SingleUseDaemonClient.execute(SingleUseDaemonClient.java:52) 50 at org.gradle.launcher.daemon.client.SingleUseDaemonClient.execute(SingleUseDaemonClient.java:38) 51 at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:56) 52 at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:212) 53 at org.gradle.launcher.cli.DefaultCommandLineActionFactory$ParseAndBuildAction.execute(DefaultCommandLineActionFactory.java:404) 54 at org.gradle.launcher.cli.DefaultCommandLineActionFactory$ParseAndBuildAction.execute(DefaultCommandLineActionFactory.java:376) 55 at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:38) 56 at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:23) 57 at org.gradle.launcher.cli.DefaultCommandLineActionFactory$WithLogging.execute(DefaultCommandLineActionFactory.java:369) 58 at org.gradle.launcher.Main.doAction(Main.java:35) 59 at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45) 60 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 61 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 62 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 63 at java.lang.reflect.Method.invoke(Method.java:498) 64 at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:60) 65 at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:37) 66 at org.gradle.launcher.GradleMain.main(GradleMain.java:31) 67 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 68 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 69 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 70 at java.lang.reflect.Method.invoke(Method.java:498) 71 at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:31) 72 at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:108) 73 at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61) 74 75 76* Get more help at https://help.gradle.org 77 78 79 80 81ビルドに失敗したようです
補足情報(FW/ツールのバージョンなど)
javac 16.0.2
Ren'Py 7.4.8.1895
Windows 10 Pro 64bit
プロセッサー Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz 3.41 GHz
実装RAM 16GB
回答1件
あなたの回答
tips
プレビュー