无法在Beeware中启动gradle守护程序

2024-05-16 09:50:05 发布

您现在位置:Python中文网/ 问答频道 /正文

我一直在通过Beeware创建一个移动应用程序。我已经完成了代码部分,现在我必须构建android。所以我打字, briefcase build android。该过程开始时非常顺利,但出现了一个异常错误

下面是我的Anaconda提示符的控制台输出:

(base) C:\Users\User\Sample\Techpi\Techpi>briefcase build android
[Hello_world] Building Android APK...
Starting a Gradle Daemon (subsequent builds will be faster)

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/5.4.1/userguide/gradle_daemon.html
Process command line: C:\Program Files\Java\jdk1.8.0_161\bin\java.exe -Xmx1536m -Dfile.encoding=windows-1252 -Duser.country=IN -Duser.language=en -Duser.variant -cp C:\Users\santh\.gradle\wrapper\dists\gradle-5.4.1-all\3221gyojl5jsh0helicew7rwx\gradle-5.4.1\lib\gradle-launcher-5.4.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 5.4.1
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for 1572864KB object heap


* 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

Error while building project.

我无法解决这个错误。有人能帮我吗


Tags: thetorunorgbuildgetmore错误