iis服务器助手广告
返回顶部
首页 > 资讯 > 移动开发 >Unable to start the daemon process.解决方案
  • 138
分享到

Unable to start the daemon process.解决方案

androidstudio 2023-09-11 06:09:54 138人浏览 八月长安
摘要

 错误信息如下: Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For

 错误信息如下:

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.5/userguide/gradle_daemon.html
Process command line: D:\Java\jdk-1.8\bin\java.exe -Xmx2048m -Dfile.encoding=UTF-8 -Duser.country=CN -Duser.language=zh -Duser.variant -cp C:\Users\DELL\.gradle\wrapper\dists\gradle-6.5-bin\6nifQtx7604sqp1q6g8wikw7p\gradle-6.5\lib\gradle-launcher-6.5.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 6.5
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap

-----------------------
Check the JVM arguments defined for the gradle process in:
 - gradle.properties in project root directory

 解决方案如下:

修改项目中gradle.properties文件,只要添加以下一行代码:

org.gradle.jvmargs=-Xmx512m

重启Android Studio或者点Try again


具体操作如下:

打开该项目找到gradle.properties文件,将

org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8用#键注释掉,改成以下代码:
org.gradle.jvmargs=-Xmx512m

 2.点击Try again或者重启Android studio就OK啦~

来源地址:https://blog.csdn.net/m0_65065082/article/details/130347653

--结束END--

本文标题: Unable to start the daemon process.解决方案

本文链接: https://www.lsjlt.com/news/402797.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作