码迷,mamicode.com
首页 > 其他好文 > 详细

libGDX 使用中问题解决

时间:2018-11-27 22:54:44      阅读:342      评论:0      收藏:0      [点我收藏+]

标签:err   following   0kb   object   init   img   general   ati   src   

最近在使用libGDX的过程中遇到了一点问题:
技术分享图片


在使用官方的构建工具时,项目构建过程中出现下列错误提示:

Generating app in C:\Users\Aaron\Desktop\test
Executing ‘C:\Users\Aaron\Desktop\test/gradlew.bat clean --no-daemon eclipse afterEclipseImport‘
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.6/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 guide chapter on the daemon at https://docs.gradle.org/4.6/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for 1536000KB 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
Done!
To import in Eclipse: File -> Import -> General -> Existing Projects into Workspace
To import to Intellij IDEA: File -> Open -> YourProject.ipr

技术分享图片

在一番搜索之后,发现国内暂时没有这方面的博文,但是一篇关于Android studio中遇到 :

Error occurred during initialization of VM

这个错误的处理方法启发了我。


解决方法:
在 C:\Users\Aaron.gradle 该目录下新建 gradle.properties 文件,内容为

org.gradle.jvmargs=-Xmx512m

然后重启构建工具,再次构建,最终成功!

技术分享图片

libGDX 使用中问题解决

标签:err   following   0kb   object   init   img   general   ati   src   

原文地址:https://www.cnblogs.com/CoderAnan/p/10029481.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!