1195116234 2021-05-13 14:18 采纳率: 33.3%
浏览 333

android studio 一直重复创建守护进程,然后直到内存占满,报错无法创建守护进程

android studio 4.2 已经重装了一次了,(哭

下面是错误信息:

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.7.1/userguide/gradle_daemon.html
Process command line: C:\Program Files\Java\jdk1.8.0_91\bin\java.exe -Xmx2048m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp D:\android\gradle\wrapper\dists\gradle-6.7.1-bin\bwlcbys1h7rz3272sye1xwiv6\gradle-6.7.1\lib\gradle-launcher-6.7.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 6.7.1
Please read the following process output to find out more:
-----------------------
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 1048576 bytes for AllocateHeap
# An error report file with more information is saved as:
# D:\android\gradle\daemon\6.7.1\hs_err_pid25604.log

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

 

一直重复这个操作:

Starting Gradle Daemon...
Gradle Daemon started in 5 s 943 ms
Starting Gradle Daemon...
Gradle Daemon started in 6 s 781 ms
Starting Gradle Daemon...
Gradle Daemon started in 6 s 119 ms

  • 写回答

2条回答 默认 最新

  • 1195116234 2021-05-13 14:25
    关注

    修改gradle.properties里的内存大小也没用,电脑内存是8g,gradle6.7以前的也能运行,求大神们帮助

    评论

报告相同问题?

悬赏问题

  • ¥30 Matlab打开默认名称带有/的光谱数据
  • ¥50 easyExcel模板 动态单元格合并列
  • ¥15 res.rows如何取值使用
  • ¥15 在odoo17开发环境中,怎么实现库存管理系统,或独立模块设计与AGV小车对接?开发方面应如何设计和开发?请详细解释MES或WMS在与AGV小车对接时需完成的设计和开发
  • ¥15 CSP算法实现EEG特征提取,哪一步错了?
  • ¥15 游戏盾如何溯源服务器真实ip?需要30个字。后面的字是凑数的
  • ¥15 vue3前端取消收藏的不会引用collectId
  • ¥15 delphi7 HMAC_SHA256方式加密
  • ¥15 关于#qt#的问题:我想实现qcustomplot完成坐标轴
  • ¥15 下列c语言代码为何输出了多余的空格